Skip to content

Commit

Permalink
feat: generate a ClusterImageCatalog on image update
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
  • Loading branch information
NiccoloFei committed Apr 11, 2024
1 parent d70d15b commit 3d46bfb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,35 @@ jobs:
sarif_file: snyk.sarif

- name: Build and push
id: build
uses: docker/build-push-action@v5
with:
context: ${{ matrix.dir }}
file: ${{ matrix.file }}
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) }}"

0 comments on commit 3d46bfb

Please sign in to comment.