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

Update .gitlab-ci.yml

parent 4af32c34
No related branches found
No related tags found
No related merge requests found
Pipeline #469126 failed
......@@ -15,15 +15,15 @@ build:
# 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/conduit-backend --dockerfile $CI_PROJECT_DIR/conduit-backend/Dockerfile --destination $CI_REGISTRY_IMAGE: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/conduit-backend --dockerfile $CI_PROJECT_DIR/conduit-backend/Dockerfile --destination $CI_REGISTRY_IMAGE:backend
# Build Frontend
- 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/conduit-front --dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile --destination $CI_REGISTRY_IMAGE:front
# - 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/conduit-front --dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile --destination $CI_REGISTRY_IMAGE:front
deploy:
......@@ -46,13 +46,13 @@ deploy:
- kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-service.yaml
- kubectl -n default rollout restart deployment mongo-deployment
- kubectl apply -f $CI_PROJECT_DIR/conduit-backend/backend-service.yaml
- kubectl apply -f $CI_PROJECT_DIR/conduit-backend/backend-deployment.yaml
- kubectl -n default rollout restart deployment backend
# - kubectl apply -f $CI_PROJECT_DIR/conduit-backend/backend-service.yaml
# - kubectl apply -f $CI_PROJECT_DIR/conduit-backend/backend-deployment.yaml
# - kubectl -n default rollout restart deployment backend
- kubectl apply -f $CI_PROJECT_DIR/conduit-front/front-service.yaml
- kubectl apply -f $CI_PROJECT_DIR/conduit-front/front-deployment.yaml
- kubectl -n default rollout restart deployment front
# - kubectl apply -f $CI_PROJECT_DIR/conduit-front/front-service.yaml
# - kubectl apply -f $CI_PROJECT_DIR/conduit-front/front-deployment.yaml
# - kubectl -n default rollout restart deployment front
# script: echo "Deploying Frontend"
......
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