diff --git a/.github/workflows/deploy-and-test-front-qa.yml b/.github/workflows/deploy-and-test-front-qa.yml index 91e3412630d0..c46f499520c3 100644 --- a/.github/workflows/deploy-and-test-front-qa.yml +++ b/.github/workflows/deploy-and-test-front-qa.yml @@ -15,6 +15,7 @@ concurrency: env: GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} + IMAGE_NAME: front-qa jobs: build-and-deploy: @@ -50,12 +51,12 @@ jobs: - name: Build the image on Cloud Build run: | chmod +x ./k8s/cloud-build.sh - ./k8s/cloud-build.sh --image-name=front --dockerfile-path=./front/Dockerfile --working-dir=./ + ./k8s/cloud-build.sh --image-name=$IMAGE_NAME --dockerfile-path=./front/Dockerfile --working-dir=./ - name: Deploy the image on Kubernetes run: | chmod +x ./k8s/deploy-image.sh - ./k8s/deploy-image.sh gcr.io/$GCLOUD_PROJECT_ID/front-image:${{ steps.short_sha.outputs.short_sha }} front-qa-deployment + ./k8s/deploy-image.sh gcr.io/$GCLOUD_PROJECT_ID/$IMAGE_NAME:${{ steps.short_sha.outputs.short_sha }} front-qa-deployment - name: Wait for rollout to complete run: kubectl rollout status deployment/front-qa-deployment --timeout=10m diff --git a/.github/workflows/deploy-front-edge.yml b/.github/workflows/deploy-front-edge.yml index 3f701e0a877a..9f1d4404430f 100644 --- a/.github/workflows/deploy-front-edge.yml +++ b/.github/workflows/deploy-front-edge.yml @@ -9,6 +9,7 @@ concurrency: env: GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} + IMAGE_NAME: front-edge jobs: build-and-deploy: @@ -41,12 +42,12 @@ jobs: - name: Build the image on Cloud Build run: | chmod +x ./k8s/cloud-build.sh - ./k8s/cloud-build.sh --image-name=front --dockerfile-path=./front/Dockerfile --working-dir=./ + ./k8s/cloud-build.sh --image-name=$IMAGE_NAME --dockerfile-path=./front/Dockerfile --working-dir=./ - name: Deploy the image on Kubernetes run: | chmod +x ./k8s/deploy-image.sh - ./k8s/deploy-image.sh gcr.io/$GCLOUD_PROJECT_ID/front-image:${{ steps.short_sha.outputs.short_sha }} front-edge-deployment + ./k8s/deploy-image.sh gcr.io/$GCLOUD_PROJECT_ID/$IMAGE_NAME:${{ steps.short_sha.outputs.short_sha }} front-edge-deployment - name: Wait for rollout to complete run: kubectl rollout status deployment/front-edge-deployment --timeout=10m diff --git a/k8s/deployments/front-edge-deployment.yaml b/k8s/deployments/front-edge-deployment.yaml index 9a25ef559e89..0aadce0278ef 100644 --- a/k8s/deployments/front-edge-deployment.yaml +++ b/k8s/deployments/front-edge-deployment.yaml @@ -19,7 +19,7 @@ spec: terminationGracePeriodSeconds: 60 containers: - name: web - image: gcr.io/or1g1n-186209/front-image:latest + image: gcr.io/or1g1n-186209/front-edge-image:latest imagePullPolicy: Always ports: - containerPort: 3000 diff --git a/k8s/deployments/front-qa-deployment.yaml b/k8s/deployments/front-qa-deployment.yaml index b3ff9ff46f94..bd11bb164865 100644 --- a/k8s/deployments/front-qa-deployment.yaml +++ b/k8s/deployments/front-qa-deployment.yaml @@ -19,7 +19,7 @@ spec: terminationGracePeriodSeconds: 60 containers: - name: web - image: gcr.io/or1g1n-186209/front-image:latest + image: gcr.io/or1g1n-186209/front-qa-image:latest imagePullPolicy: Always ports: - containerPort: 3000