diff options
author | Andrew Dolgov <[email protected]> | 2024-02-17 12:02:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-02-17 12:02:07 +0300 |
commit | dad3646876248555dd786349c11f91ec3aed0d93 (patch) | |
tree | d48954cef91f543611646cfea4de12ce76343729 | |
parent | 244146fac7d89123d9b80a9e26afe86913ca8c1b (diff) |
wip: update-prod
-rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c7005b22..15cc0ace3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,6 +115,19 @@ ttrss-fpm-pgsql-static:publish: variables: DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile +update-prod: + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $PROD_HELM_TOKEN != null + stage: publish + script: + - git clone https://token:${PROD_HELM_TOKEN}@gitlab.fakecake.org/git/helm-charts/tt-rss-prod.git chart + - cd chart + - 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 commit -m "update image tag to ${CI_COMMIT_SHORT_SHA}" + - git push origin master + update-demo: extends: .deploy-helm-chart variables: |