Skip to content

Commit

Permalink
use variable for target name 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoeben committed Nov 12, 2023
1 parent 3b93975 commit 13423ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/other-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ jobs:
- name: Export digest
run: |
mkdir -p /tmp/digests
target="${{ env.TARGET_NAME }}"
digest="${{ fromJSON(steps.bake.outputs.metadata).${target}['containerimage.digest'] }}"
digest="${{ fromJSON(steps.bake.outputs.metadata)[env.TARGET_NAME]['containerimage.digest'] }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
Expand Down

0 comments on commit 13423ef

Please sign in to comment.