diff options
author | Andrew Dolgov <[email protected]> | 2024-02-17 12:37:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-02-17 12:37:34 +0300 |
commit | ea732aa55fb6635fa9dc75ca2269f30fd36ed2c6 (patch) | |
tree | 7d2f591a3c1c2cd17c1d22ad9e1413663a7c64bf | |
parent | d19729157b9d0ed8c7b758141124e6e72f96aa49 (diff) |
add demo job back
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7bb33c08a..c5a44e5a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,13 +131,18 @@ update-prod: - git commit -m "update image tag to ${CI_COMMIT_SHORT_SHA}" - git push origin master -#update-demo: -# extends: .deploy-helm-chart -# variables: -# HELM_CHART: oci://registry.fakecake.org/infra/helm-charts/tt-rss -# HELM_VALUES: .helm/values-demo.yaml -# HELM_RELEASE: tt-rss-demo -# HELM_ARGS: --set imageTag=${CI_COMMIT_SHORT_SHA} -# rules: -# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null && $UPDATE_DEMO == "true" -# stage: publish +update-demo: + image: ${INFRA_IMAGE} + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $DEMO_HELM_TOKEN != null + stage: publish + script: + - git clone https://token:${DEMO_HELM_TOKEN}@gitlab.fakecake.org/git/helm-charts/tt-rss.git chart + - cd chart + - git config user.name "Gitlab CI" + - git config user.email "[email protected]" + - yq -ei '.imageTag = "'${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 |