From a9c700466a7c1c6e561806e0d8d709b7aa54dd52 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Fri, 19 Jul 2024 17:44:35 -0700 Subject: [PATCH] fix(workflows): tag latest version during release-assets workflow --- .github/workflows/release-assets.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index a7a484f..0e3ca1a 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -156,11 +156,17 @@ jobs: with: file: ./images/Dockerfile.${{ matrix.component }} platforms: linux/amd64,linux/aarch64 - tags: "ghcr.io/edera-dev/${{ matrix.component }}:${{ steps.version.outputs.KRATA_VERSION }}" + tags: "ghcr.io/edera-dev/${{ matrix.component }}:${{ steps.version.outputs.KRATA_VERSION }},ghcr.io/edera-dev/${{ matrix.component }}:latest" push: true - - name: cosign sign ${{ matrix.component }} + - name: cosign sign ${{ matrix.component }}:${{ steps.version.outputs.KRATA_VERSION }} run: cosign sign --yes "${TAGS}@${DIGEST}" env: DIGEST: "${{ steps.push.outputs.digest }}" TAGS: "ghcr.io/edera-dev/${{ matrix.component }}:${{ steps.version.outputs.KRATA_VERSION }}" COSIGN_EXPERIMENTAL: "true" + - name: cosign sign ${{ matrix.component }}:latest + run: cosign sign --yes "${TAGS}@${DIGEST}" + env: + DIGEST: "${{ steps.push.outputs.digest }}" + TAGS: "ghcr.io/edera-dev/${{ matrix.component }}:latest" + COSIGN_EXPERIMENTAL: "true"