mirror of https://tt-rss.org/git/tt-rss.git
add demo job back
This commit is contained in:
parent
d19729157b
commit
ea732aa55f
|
@ -131,13 +131,18 @@ update-prod:
|
||||||
- git commit -m "update image tag to ${CI_COMMIT_SHORT_SHA}"
|
- git commit -m "update image tag to ${CI_COMMIT_SHORT_SHA}"
|
||||||
- git push origin master
|
- git push origin master
|
||||||
|
|
||||||
#update-demo:
|
update-demo:
|
||||||
# extends: .deploy-helm-chart
|
image: ${INFRA_IMAGE}
|
||||||
# variables:
|
rules:
|
||||||
# HELM_CHART: oci://registry.fakecake.org/infra/helm-charts/tt-rss
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $DEMO_HELM_TOKEN != null
|
||||||
# HELM_VALUES: .helm/values-demo.yaml
|
stage: publish
|
||||||
# HELM_RELEASE: tt-rss-demo
|
script:
|
||||||
# HELM_ARGS: --set imageTag=${CI_COMMIT_SHORT_SHA}
|
- git clone https://token:${DEMO_HELM_TOKEN}@gitlab.fakecake.org/git/helm-charts/tt-rss.git chart
|
||||||
# rules:
|
- cd chart
|
||||||
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null && $UPDATE_DEMO == "true"
|
- git config user.name "Gitlab CI"
|
||||||
# stage: publish
|
- git config user.email "noreply@example.com"
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in New Issue