Skip to content

Commit 41ade47

Browse files
Fix tag deployments (#58)
2 parents 3e646b5 + 757a999 commit 41ade47

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,20 @@ jobs:
207207
with:
208208
sarif_file: 'trivy-results.sarif'
209209

210+
- name: Extract metadata for Docker
211+
id: meta2
212+
uses: docker/metadata-action@v5
213+
with:
214+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} #TODO(berry): fix on git labels multiple tags
215+
flavor: |
216+
latest=false
217+
env:
218+
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
219+
210220
- name: Run Trivy SBOM
211221
uses: aquasecurity/trivy-action@master
212222
with:
213-
image-ref: ${{ steps.meta.outputs.tags }}
223+
image-ref: ${{ steps.meta2.outputs.tags }}
214224
scan-type: image
215225
exit-code: 0
216226
format: 'cyclonedx'
@@ -223,7 +233,7 @@ jobs:
223233
- name: Run Trivy license scanner
224234
uses: aquasecurity/trivy-action@master
225235
with:
226-
image-ref: ${{ steps.meta.outputs.tags }}
236+
image-ref: ${{ steps.meta2.outputs.tags }}
227237
scan-type: image
228238
scanners: 'license'
229239
exit-code: 0
@@ -254,6 +264,8 @@ jobs:
254264
uses: docker/metadata-action@v5
255265
with:
256266
images: "" # make empty to get the correct tag
267+
flavor: |
268+
latest=false
257269
258270
- name: print metadata
259271
run: |

0 commit comments

Comments
 (0)