Skip to content

Commit 3d46bfb

Browse files
committed
feat: generate a ClusterImageCatalog on image update
Signed-off-by: Niccolò Fei <[email protected]>
1 parent d70d15b commit 3d46bfb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,35 @@ jobs:
103103
sarif_file: snyk.sarif
104104

105105
- name: Build and push
106+
id: build
106107
uses: docker/build-push-action@v5
107108
with:
108109
context: ${{ matrix.dir }}
109110
file: ${{ matrix.file }}
110111
platforms: ${{ matrix.platforms }}
111112
push: true
112113
tags: ${{ env.TAGS }}
114+
115+
- name: Write matrix outputs
116+
uses: cloudposse/github-action-matrix-outputs-write@v1
117+
with:
118+
matrix-step-name: ${{ github.job }}
119+
matrix-key: ${{ matrix.version }}
120+
outputs: |-
121+
digest: ghcr.io/${{ env.IMAGE_RELEASE }}:${{ steps.build.outputs.digest }}
122+
major: ${{ matrix.version }}
123+
124+
read:
125+
name: Read build matrix outputs
126+
runs-on: ubuntu-22.04
127+
needs: build
128+
steps:
129+
- name: Read matrix outputs
130+
uses: cloudposse/github-action-matrix-outputs-read@v1
131+
id: read
132+
with:
133+
matrix-step-name: build
134+
135+
- name: Test output
136+
run: |
137+
echo "${{ fromJson(steps.read.outputs.result) }}"

0 commit comments

Comments
 (0)