diff options
author | Andrew Dolgov <[email protected]> | 2023-11-03 21:02:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-11-03 21:02:16 +0300 |
commit | 97d10d661cc202e974e4f8ae2047f52722d4de27 (patch) | |
tree | a3c12b78799ed3da0d383a8bda14999c04e7e0e9 | |
parent | a7c8ee9956862a6e204de690673c631b68dbb08c (diff) |
add demo job
-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 36300c2..cd43a5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - lint - build + - publish include: - project: 'ci/ci-templates' @@ -45,3 +46,15 @@ the-epube-web-nginx:branch: extends: .build-branch variables: DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile + +update-demo: + stage: publish + image: ${HELM_IMAGE} + variables: + HELM_REPO: https://gitlab.tt-rss.org/tt-rss/helm-charts/the-epube + script: + - git clone ${HELM_REPO} chart + - helm upgrade --atomic --install the-epube-demo chart --values .helm/values-demo.yaml --set imageTag=${CI_COMMIT_SHORT_SHA} + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null && $UPDATE_DEMO == "true" + |