mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
Use a step ID in github release action to get the digest of the image (#1028)
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
53fc0c3c83
commit
2b62dd1d8a
1 changed files with 2 additions and 1 deletions
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
@ -61,6 +61,7 @@ jobs:
|
||||||
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
|
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
|
||||||
- name: Release Docker Image
|
- name: Release Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
id: relimage
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
tags: ${{steps.meta.outputs.tags}}
|
tags: ${{steps.meta.outputs.tags}}
|
||||||
|
@ -73,4 +74,4 @@ jobs:
|
||||||
TAGS: ${{steps.meta.outputs.tags}}
|
TAGS: ${{steps.meta.outputs.tags}}
|
||||||
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
|
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
|
||||||
COSIGN_PRIVATE_KEY: /tmp/cosign.key
|
COSIGN_PRIVATE_KEY: /tmp/cosign.key
|
||||||
DIGEST: ${{steps.build-push-action.outputs.digest}}
|
DIGEST: ${{steps.relimage.outputs.digest}}
|
||||||
|
|
Loading…
Reference in a new issue