This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user