mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
redirect stderr to get digest successfully (#5782)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com> Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
e9ea3ea4f7
commit
631a8e1796
1 changed files with 2 additions and 2 deletions
4
.github/workflows/helm-release.yaml
vendored
4
.github/workflows/helm-release.yaml
vendored
|
@ -44,7 +44,7 @@ jobs:
|
|||
- name: Install Helm
|
||||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
||||
with:
|
||||
version: v3.8.0
|
||||
version: v3.10.3
|
||||
|
||||
- name: Install Cosign
|
||||
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
|
||||
|
@ -90,7 +90,7 @@ jobs:
|
|||
chart=${dir##*/}
|
||||
echo "Found chart: ${chart}"
|
||||
helm package charts-tmp/${chart} --destination .dist
|
||||
helm push .dist/${chart}-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts > .digest
|
||||
helm push .dist/${chart}-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts |& tee .digest
|
||||
cosign login --username ${GITHUB_ACTOR} --password ${{ secrets.CR_PAT_ARTIFACTS }} ghcr.io
|
||||
cosign sign ghcr.io/${{ github.repository_owner }}/charts/${chart}@$(cat .digest | awk -F "[, ]+" '/Digest/{print $NF}')
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue