Skip to content

Commit

Permalink
Update datadog version tag in manifest on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
acrollet committed Apr 17, 2024
1 parent 73ae737 commit 3ded666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
fetch-depth: 1
path: vsp-infra-application-manifests

- name: Update vets-api image name in Manifest repo for parent helm
- name: Update vets-api image and version name in Manifest repo for parent helm
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dsva/${{inputs.ecr_repository}}
Expand All @@ -81,6 +81,9 @@ jobs:
for env in ${envs[*]};
do
yq e -i '(.vets-api.image.tag) |= "${{ github.sha }}"' $env/values.yaml
yq e -i '(."vets-api".web.envSecrets[] | select(.name=="DD_VERSION").value) |= "${{ github.sha }}"' $env/values.yaml
yq e -i '(."vets-api".web.dbMigrate.envSecrets[] | select(.name=="DD_VERSION").value) |= "${{ github.sha }}"' $env/values.yaml
yq e -i '(."vets-api".worker.envSecrets[] | select(.name=="DD_VERSION").value) |= "${{ github.sha }}"' $env/values.yaml
done
git diff
Expand Down

0 comments on commit 3ded666

Please sign in to comment.