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

Update .gitlab-ci.yml

parent acca9b65
No related branches found
No related tags found
No related merge requests found
Pipeline #439182 passed
stages:
- build_back
- build_front
- build
build:
stage: build_back
stage: build
script: echo "Building Backend"
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
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 $CI_PROJECT_DIR/backend-express --dockerfile $CI_PROJECT_DIR/backend-express/Dockerfile --destination $CI_REGISTRY_IMAGE:backend
#$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
# Build Frontend
build:
stage: build_front
script: echo "Building Frontend"
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "Building Frontend"
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/front-react --dockerfile $CI_PROJECT_DIR/front-react/Dockerfile --destination $CI_REGISTRY_IMAGE:backend
#$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- /kaniko/executor --context $CI_PROJECT_DIR/front-react --dockerfile $CI_PROJECT_DIR/front-react/Dockerfile --destination $CI_REGISTRY_IMAGE:front
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