-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fail pipeline, if helm push is not successful (#3506)
Signed-off-by: Jan-Otto Kröpke <[email protected]>
- Loading branch information
Showing
1 changed file
with
1 addition
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,28 +56,5 @@ jobs: | |
if [ -z "${pkg:-}" ]; then | ||
break | ||
fi | ||
if ! helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"; then | ||
echo '::warning:: helm push failed!' | ||
fi | ||
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts" | ||
done | ||
# - uses: sigstore/[email protected] | ||
# - name: Push charts to GHCR and sign | ||
# env: | ||
# COSIGN_EXPERIMENTAL: 1 | ||
# # when filling gaps with previously released charts, cr would create | ||
# # nothing in .cr-release-packages/, and the original globbing character | ||
# # would be preserved, causing a non-zero exit. Set nullglob to fix this | ||
# run: | | ||
# shopt -s nullglob | ||
# for pkg in .cr-release-packages/*; do | ||
# if [ -z "${pkg:-}" ]; then | ||
# break | ||
# fi | ||
# helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts > .digest | ||
# file=${pkg##*/} # extracts file name from full directory path | ||
# name=${file%-*} # extracts chart name from filename | ||
# digest=$(awk -F "[, ]+" '/Digest/{print $NF}' < .digest) | ||
# cosign sign ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts/"${name}"@"${digest}" | ||
# done |