Skip to content

Commit 1dc5397

Browse files
authored
Merge pull request #2424 from bcgov/2423-hotfix-deploy-workflow
Set path from environment when updating images
2 parents 33d61ec + c944f12 commit 1dc5397

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,25 @@ jobs:
5858
id: api-image-update
5959
uses: mikefarah/yq@master
6060
with:
61-
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-api:${{ github.sha }}"' -i namespaces/dev/images-api_patch.yaml
61+
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-api:${{ github.sha }}"' -i namespaces/${{ inputs.environment }}/images-api_patch.yaml
6262

6363
- name: Update Migrate Image
6464
id: migrate-image-update
6565
uses: mikefarah/yq@master
6666
with:
67-
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-migrate:${{ github.sha }}"' -i namespaces/dev/images-migrate_patch.yaml
67+
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-migrate:${{ github.sha }}"' -i namespaces/${{ inputs.environment }}/images-migrate_patch.yaml
6868

6969
- name: Update ALCS Frontend Image
7070
id: fe-image-update
7171
uses: mikefarah/yq@master
7272
with:
73-
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-frontend:${{ github.sha }}"' -i namespaces/dev/images-alcs_patch.yaml
73+
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-frontend:${{ github.sha }}"' -i namespaces/${{ inputs.environment }}/images-alcs_patch.yaml
7474

7575
- name: Update Portal Frontend Image
7676
id: portal-fe-image-update
7777
uses: mikefarah/yq@master
7878
with:
79-
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-portal-frontend:${{ github.sha }}"' -i namespaces/dev/images-portal_patch.yaml
79+
cmd: yq eval '.spec.template.spec.containers[0].image = "image-registry.apps.silver.devops.gov.bc.ca/a5cf88-tools/alcs-portal-frontend:${{ github.sha }}"' -i namespaces/${{ inputs.environment }}/images-portal_patch.yaml
8080

8181
- name: Commit and push update
8282
run: |

0 commit comments

Comments
 (0)