Skip to content

Commit

Permalink
Add quotation marks for commit tag
Browse files Browse the repository at this point in the history
to update aurora depolyment
  • Loading branch information
tsundvoll committed Feb 12, 2024
1 parent 124ee83 commit 62c4bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_aurora_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ jobs:
run: |
COMPONENT=frontend
TAG_LINE_NUMBER=$(($(grep -n "${{ inputs.Registry }}/${{ inputs.ImageName }}-${COMPONENT}" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml | cut --delimiter=":" --fields=1)+1))
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: ${{ inputs.Tag }}/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: '${{ inputs.Tag }}'/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
- name: Update backend in file
run: |
COMPONENT=backend
TAG_LINE_NUMBER=$(($(grep -n "${{ inputs.Registry }}/${{ inputs.ImageName }}-${COMPONENT}" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml | cut --delimiter=":" --fields=1)+1))
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: ${{ inputs.Tag }}/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: '${{ inputs.Tag }}'/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
- name: Update broker in file
run: |
COMPONENT=broker
TAG_LINE_NUMBER=$(($(grep -n "${{ inputs.Registry }}/${{ inputs.ImageName }}-${COMPONENT}" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml | cut --delimiter=":" --fields=1)+1))
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: ${{ inputs.Tag }}/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
sed -i "${TAG_LINE_NUMBER} s/newTag:.*/newTag: '${{ inputs.Tag }}'/" k8s_kustomize/overlays/${{ inputs.Environment }}/kustomization.yaml
- name: Update infrastructure in GitHub
run: |
Expand Down

0 comments on commit 62c4bc7

Please sign in to comment.