Skip to content

Commit

Permalink
use variable for target name
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoeben committed Nov 12, 2023
1 parent 233f06b commit 3b93975
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/other-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

env:
REGISTRY_IMAGE: hsac/fitnesse-fixtures-test-jre11
TARGET_NAME: test

jobs:
build:
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
files: |
./docker-bake.hcl
/tmp/bake-meta.json
targets: test
targets: ${{ env.TARGET_NAME }}
set: |
*.tags=
*.platform=${{ matrix.platform }}
Expand All @@ -69,7 +70,8 @@ jobs:
- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ fromJSON(steps.bake.outputs.metadata).test['containerimage.digest'] }}"
target="${{ env.TARGET_NAME }}"
digest="${{ fromJSON(steps.bake.outputs.metadata).${target}['containerimage.digest'] }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
Expand Down

0 comments on commit 3b93975

Please sign in to comment.