From 393eda7b4f22b0618f9bc641d64c2473311e613a Mon Sep 17 00:00:00 2001
From: M9713 <m9713@student.jamk.fi>
Date: Mon, 22 Nov 2021 17:10:11 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd811d6..a87c4e3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ variables:
 build:
   stage: build
   
-  when: manual 
+#  when: manual 
 
   image:
     name: gcr.io/kaniko-project/executor:debug
@@ -27,9 +27,9 @@ 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
 
@@ -44,7 +44,7 @@ deploy:
 
     stage: deploy
 
-    when: manual
+#    when: manual
 
 #    script: echo "Deploying"
     image: bitnami/kubectl:latest
@@ -52,15 +52,15 @@ deploy:
          
 #         - kubectl apply -k $CI_PROJECT_DIR/conduit-db/kustomization.yaml
 
-         - kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-deployment.yaml
-         - kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-persistent-volume.yaml
-         - kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-pv-claim.yaml
-         - 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-db/mongo-deployment.yaml
+#         - kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-persistent-volume.yaml
+#         - kubectl apply -f $CI_PROJECT_DIR/conduit-db/mongo-pv-claim.yaml
+#         - 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
-- 
GitLab