Browse Source

Use library project instead, since its public

master
Fábio Kaiser Rauber 2 months ago
parent
commit
5a14e33255
  1. 8
      .drone.yml

8
.drone.yml

@ -29,10 +29,10 @@ steps:
- helm plugin install https://github.com/chartmuseum/helm-push.git || true
# Fail if credentials are missing
- "if [ -z \"$HARBOR_USERNAME\" ] || [ -z \"$HARBOR_PASSWORD\" ]; then echo \"Error: HARBOR_USERNAME or HARBOR_PASSWORD not set\"; exit 1; fi"
# Add the seit chart repository
- helm repo add seit https://porto.interlegis.leg.br/chartrepo/seit --username "$HARBOR_USERNAME" --password "$HARBOR_PASSWORD" --force-update || true
# Push all .tgz files to the seit chart repository
- if ls charts/dist/*.tgz >/dev/null 2>&1; then for CHART in charts/dist/*.tgz; do helm cm-push "$CHART" seit; done; else echo "No .tgz files to push"; exit 0; fi
# Add the library chart repository
- helm repo add library https://porto.interlegis.leg.br/chartrepo/library --username "$HARBOR_USERNAME" --password "$HARBOR_PASSWORD" --force-update || true
# Push all .tgz files to the library charts repository
- if ls charts/dist/*.tgz >/dev/null 2>&1; then for CHART in charts/dist/*.tgz; do helm cm-push "$CHART" library; done; else echo "No .tgz files to push"; exit 0; fi
environment:
HARBOR_USERNAME:
from_secret: harbor_username

Loading…
Cancel
Save