From 7602038264fc2538455a053cd025f0a5645e94f3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 Feb 2024 12:20:33 +0300 Subject: [PATCH] unquote commit hash & add files to commit --- .gitlab-ci.yml | 5 +++-- 1 file 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 "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