File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff 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) }}"
You can’t perform that action at this time.
0 commit comments