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

Update .gitlab-ci.yml

parent fb46590d
No related branches found
No related tags found
No related merge requests found
Pipeline #483245 failed
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
# - template: DAST.gitlab-ci.yml # - template: DAST.gitlab-ci.yml
stages: stages:
# - build backend - build
- build frontend
# - test # - test
# - deploy mongodb # - deploy mongodb
# - deploy backend # - deploy backend
...@@ -22,8 +21,8 @@ stages: ...@@ -22,8 +21,8 @@ stages:
# DAST_AUTH_PASSWORD: “DAST” # DAST_AUTH_PASSWORD: “DAST”
# SAST_GOSEC_LEVEL: 2 # SAST_GOSEC_LEVEL: 2
#build backend: build backend:
# stage: build backend stage: build
# when: manual # when: manual
...@@ -35,18 +34,18 @@ stages: ...@@ -35,18 +34,18 @@ stages:
#Build Backend #Build Backend
# - echo "Building Backend" - echo "Building Backend"
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor - /kaniko/executor
# --context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/ --context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/
# --dockerfile Dockerfile --dockerfile Dockerfile
# --destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA --destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA
build frontend: build frontend:
stage: build frontend stage: build
# when: manual # when: manual
...@@ -61,7 +60,7 @@ build frontend: ...@@ -61,7 +60,7 @@ build frontend:
- echo "Building Frontend" - echo "Building Frontend"
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
--context $CI_PROJECT_DIR --context $CI_PROJECT_DIR/conduit-front
--dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile --dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile
--destination $CI_REGISTRY_IMAGE:front-$CI_COMMIT_SHORT_SHA --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