File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,14 +51,17 @@ jobs:
5151
5252 git config --global user.name "github-actions[bot]"
5353 git config --global user.email "username@users.noreply.github.com"
54+ - name : fix tag format
55+ id : tag
56+ run : |
57+ echo "sha=$(echo "${{ steps.push.outputs.digest }}" | sed 's/sha256:/sha256-/g')" >> $GITHUB_OUTPUT
5458 - name : Update tag in values.yaml
5559 run : |
5660
57- export sha=$(echo "${{ steps.push.outputs.digest }}" | sed 's/sha256:/sha256-/g')
58- python -m yq -Y --indentless --in-place '.image.tag = "$sha"' values.yml
61+ python -m yq -Y --indentless --in-place '.image.tag = "${{ steps.tag.outputs.sha }}"' values.yml
5962
6063 git add values.yml
61- git commit -m "Update image tag to ${{ steps.push .outputs.digest }}"
64+ git commit -m "Update image tag to ${{ steps.tag .outputs.sha }}"
6265 git push origin main
6366
6467 - name : Generate artifact attestation
You can’t perform that action at this time.
0 commit comments