Skip to content

Commit

Permalink
Bug Fix: Release process tried to sign prov files in addition to the …
Browse files Browse the repository at this point in the history
…chart file

Additionally - using variables to pull the repository name instead of hard-coding it.

Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Mar 23, 2024
1 parent 32a3b6c commit 76dbf86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ jobs:
# would be preserved, causing a non-zero exit. Set nullglob to fix this
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
for pkg in .cr-release-packages/*.tgz; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts
helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY}"
file=${pkg##*/}
name=${file%-*}
version=${file%.*}
version=${version##*-}
cosign sign --yes ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts/"${name}":"${version}"
cosign sign --yes ghcr.io/"${GITHUB_REPOSITORY}"/"${name}":"${version}"
done

0 comments on commit 76dbf86

Please sign in to comment.