Trigger build
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2026-05-03 19:35:56 +02:00
parent 6f55d457a8
commit cbe63e6116

View File

@@ -39,11 +39,11 @@ steps:
- helm dep build "$CHART_PATH"
- helm package "$CHART_PATH" -d packages;
- export REGISTRY=$(echo oci://gitea.badhouseplants.net/$CI_REPO/helm | tr '[:upper:]' '[:lower:]')
- export CHART_NAME=$(helm show chart "$CHART_PATH/Chart.yaml" | yq .name)
- export CHART_VERSION=$(helm show chart "$CHART_PATH/Chart.yaml" | yq .version)
- export CHART_NAME=$(helm show chart "$CHART_PATH" | yq .name)
- export CHART_VERSION=$(helm show chart "$CHART_PATH" | yq .version)
- |-
if helm pull ${REGISTRY}/${CHART_NAME}:${CHART_VERSION}; then
echo "Chart is found in the upstream: ${CHART_NAME}:${CHART_VERSION}"
if helm pull $REGISTRY/$CHART_NAME:$CHART_VERSION; then
echo "Chart is found in the upstream: $CHART_NAME:$CHART_VERSION"
exit 0;
fi
helm push "./packages/$CHART_NAME-$CHART_VERSION.tgz" "${REGISTRY}"
helm push "./packages/$CHART_NAME-$CHART_VERSION.tgz" "$REGISTRY"