From 3d46bfbe4ea4ab2e4f9b418575d518a30525bfdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Thu, 11 Apr 2024 17:19:33 +0200 Subject: [PATCH] feat: generate a ClusterImageCatalog on image update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f59d231..840580ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,6 +103,7 @@ jobs: sarif_file: snyk.sarif - name: Build and push + id: build uses: docker/build-push-action@v5 with: context: ${{ matrix.dir }} @@ -110,3 +111,27 @@ jobs: platforms: ${{ matrix.platforms }} push: true tags: ${{ env.TAGS }} + + - name: Write matrix outputs + uses: cloudposse/github-action-matrix-outputs-write@v1 + with: + matrix-step-name: ${{ github.job }} + matrix-key: ${{ matrix.version }} + outputs: |- + digest: ghcr.io/${{ env.IMAGE_RELEASE }}:${{ steps.build.outputs.digest }} + major: ${{ matrix.version }} + + read: + name: Read build matrix outputs + runs-on: ubuntu-22.04 + needs: build + steps: + - name: Read matrix outputs + uses: cloudposse/github-action-matrix-outputs-read@v1 + id: read + with: + matrix-step-name: build + + - name: Test output + run: | + echo "${{ fromJson(steps.read.outputs.result) }}"