Skip to content

Commit 2235615

Browse files
committed
build: fix since pushing by digest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent a6745e6 commit 2235615

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,12 @@ jobs:
128128
id: attest
129129
uses: actions/github-script@v7
130130
env:
131-
INPUT_TAGS: ${{ steps.meta.outputs.tags }}
131+
INPUT_IMAGE-NAME: ${{ inputs.meta-image }}
132+
INPUT_IMAGE-DIGEST: ${{ steps.build.outputs.digest }}
132133
with:
133134
script: |
134135
await core.group(`Get attestations digest`, async () => {
135-
await exec.getExecOutput('docker', ['buildx', 'imagetools', 'inspect', core.getMultilineInput('tags')[0], '--format', '{{json .Manifest}}'], {
136+
await exec.getExecOutput('docker', ['buildx', 'imagetools', 'inspect', `${core.getInput('image-name')}@${core.getInput('image-digest')}`, '--format', '{{json .Manifest}}'], {
136137
ignoreReturnCode: true,
137138
silent: true
138139
}).then(res => {

0 commit comments

Comments
 (0)