File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,35 @@ jobs:
103
103
sarif_file : snyk.sarif
104
104
105
105
- name : Build and push
106
+ id : build
106
107
uses : docker/build-push-action@v5
107
108
with :
108
109
context : ${{ matrix.dir }}
109
110
file : ${{ matrix.file }}
110
111
platforms : ${{ matrix.platforms }}
111
112
push : true
112
113
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