summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-02-17 12:20:33 +0300
committerAndrew Dolgov <[email protected]>2024-02-17 12:20:33 +0300
commit7602038264fc2538455a053cd025f0a5645e94f3 (patch)
tree323a9e55adc919504631af79e5e4ff3840c4f1f1
parente85b27a61c8d27b849693296cb842693c564c152 (diff)
unquote commit hash & add files to commit
-rw-r--r--.gitlab-ci.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1a51f41ba..2897ece9d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -125,9 +125,10 @@ update-prod:
- cd chart
- git config user.name "Gitlab CI"
- git config user.email "[email protected]"
- - 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