summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml13
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"
+