Skip to content
Snippets Groups Projects
Commit 3d9896c4 authored by M9713's avatar M9713
Browse files

Update .gitlab-ci.yml

parent 3cb2b372
No related branches found
No related tags found
No related merge requests found
Pipeline #483240 failed
......@@ -6,7 +6,7 @@
# - template: DAST.gitlab-ci.yml
stages:
- build backend
# - build backend
- build frontend
# - test
# - deploy mongodb
......@@ -22,25 +22,25 @@ stages:
# DAST_AUTH_PASSWORD: “DAST”
# SAST_GOSEC_LEVEL: 2
build backend:
stage: build backend
#build backend:
# stage: build backend
# when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
script:
# script:
#Build Backend
- echo "Building Backend"
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/
--dockerfile Dockerfile
--destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA
# - echo "Building Backend"
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor
# --context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/
# --dockerfile Dockerfile
# --destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA
......@@ -61,7 +61,7 @@ build frontend:
- echo "Building Frontend"
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-front
--context git://gitlab.labranet.jamk.fi/conduitmiau/kubetest/conduit-front
--dockerfile Dockerfile
--destination $CI_REGISTRY_IMAGE:front-$CI_COMMIT_SHORT_SHA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment