unquote commit hash & add files to commit

This commit is contained in:
Andrew Dolgov 2024-02-17 12:20:33 +03:00
parent e85b27a61c
commit 7602038264
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 3 additions and 2 deletions

View File

@ -125,9 +125,10 @@ update-prod:
- cd chart
- git config user.name "Gitlab CI"
- git config user.email "noreply@example.com"
- yq -ei '.app.image.tag = "${CI_COMMIT_SHORT_SHA}"' values-prod.yaml
- yq -ei '.web.image.tag = "${CI_COMMIT_SHORT_SHA}"' values-prod.yaml
- yq -ei '.app.image.tag = "'${CI_COMMIT_SHORT_SHA}'"' values-prod.yaml
- yq -ei '.web.image.tag = "'${CI_COMMIT_SHORT_SHA}'"' values-prod.yaml
- git diff
- git add .
- git commit -m "update image tag to ${CI_COMMIT_SHORT_SHA}"
- git push origin master