- if [ -n "$(ls charts/dist/*.tgz 2>/dev/null)" ]; then helm repo index charts/dist --url https://git.interlegis.leg.br/seit/rancher-charts/raw/branch/gh-pages/ --merge charts/dist/index.yaml; else echo "No new charts to index"; fi
- if [ -n "$(ls charts/dist/*.tgz 2>/dev/null)" ]; then helm repo index charts/dist --url https://git.interlegis.leg.br/SEIT/rancher-charts/raw/branch/gh-pages/ --merge charts/dist/index.yaml; else echo "No new charts to index"; fi
depends_on:
- fetch-existing-index
@ -47,6 +47,8 @@ steps:
- name:push-to-branch
image:alpine/git
commands:
# Debug: Verify API key presence
- test -n "$GITEA_API_KEY" || { echo "GITEA_API_KEY is not set"; exit 1; }
# Check if gh-pages exists remotely, fetch it if it does, otherwise create it