summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-02-01 18:47:57 +0300
committerAndrew Dolgov <[email protected]>2024-02-01 18:47:57 +0300
commitd623b167cbb9240222f50937c3257a25b15a8518 (patch)
treebda21c23672bc636033b835ec72b1f6d1130eab9
parent3946e9546604e531b0f3eb7849dd6d2dea247d9c (diff)
switch to template helm ci
-rw-r--r--.gitlab-ci.yml13
1 files changed, 6 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1c31744..485873a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,9 @@ include:
- project: 'ci/ci-templates'
ref: master
file: .ci-lint-common.yml
+ - project: 'ci/ci-templates'
+ ref: master
+ file: .ci-deploy-helm-chart.yml
eslint:
extends: .eslint
@@ -51,13 +54,9 @@ the-epube-web-nginx:branch:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
update-demo:
- stage: publish
- image: ${HELM_IMAGE}
+ extends: .deploy-helm-chart
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}
+ HELM_CHART: oci://registry.fakecake.org/infra/helm-charts/the-epube
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null && $UPDATE_DEMO == "true"
-
+ stage: publish