|
|
@ -31,7 +31,7 @@ steps: |
|
|
|
- "if [ -n \"$LATEST_TAG\" ]; then curl -L -o charts/dist/index.yaml https://git.interlegis.leg.br/SEIT/rancher-charts/releases/download/$LATEST_TAG/index.yaml || true; fi" |
|
|
|
environment: |
|
|
|
GITEA_API_KEY: |
|
|
|
from_secret: gitea_api_key |
|
|
|
from_secret: gitea-api-key |
|
|
|
depends_on: |
|
|
|
- package-changed-charts |
|
|
|
|
|
|
@ -62,7 +62,7 @@ steps: |
|
|
|
- git push "$PUSH_URL" HEAD:gh-pages --force || { echo "Git push failed"; exit 1; } |
|
|
|
environment: |
|
|
|
GITEA_API_KEY: |
|
|
|
from_secret: gitea_api_key |
|
|
|
from_secret: gitea-api-key |
|
|
|
when: |
|
|
|
condition: ls charts/dist/*.tgz 2>/dev/null # Only run if there are new .tgz files |
|
|
|
depends_on: |
|
|
@ -73,7 +73,7 @@ steps: |
|
|
|
image: plugins/gitea-release |
|
|
|
settings: |
|
|
|
api_key: |
|
|
|
from_secret: gitea_api_key |
|
|
|
from_secret: gitea-api-key |
|
|
|
base_url: https://git.interlegis.leg.br |
|
|
|
files: |
|
|
|
- charts/dist/*.tar.gz |
|
|
|