[PATCH] ci: Skip also attestation step on master for releases

1 view
Skip to first unread message

Jan Kiszka

unread,
May 31, 2024, 1:36:28 PMMay 31
to kas-devel, Moessbauer, Felix (T CED SES-DE)
From: Jan Kiszka <jan.k...@siemens.com>

There are no images via this workflow in case of releases.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---

Untested for obvious reasons, but this seems logical to me.

.github/workflows/master.yml | 1 +
1 file changed, 1 insertion(+)

diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 206de99..eb0f409 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -54,6 +54,7 @@ jobs:
annotations: ${{ env.DOCKER_METADATA_OUTPUT_ANNOTATIONS }}
- name: Attest ${{ matrix.image-name }} image
uses: actions/attest-build-provenance@v1
+ if: ${{ env.PUSH_MASTER == 'true' }}
with:
subject-name: ghcr.io/${{ github.repository }}/${{ matrix.image-name }}
subject-digest: ${{ steps.push.outputs.digest }}
--
2.43.0
Reply all
Reply to author
Forward
0 new messages