Skip to content

Commit b010c77

Browse files
committed
fix: overwrite labels and annotations
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 2465b8d commit b010c77

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish-docker-image.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ jobs:
3737
with:
3838
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3939
tags: |
40-
type=sha,event=workflow_dispatch
40+
type=sha,event=workflow_dispatch,enable=${{ !startsWith(github.ref, 'refs/tags/') }}
4141
type=semver,pattern={{version}}
42-
type=raw,value=latest,event=tag
42+
labels: |
43+
org.opencontainers.image.title=VulnerableCode
44+
org.opencontainers.image.description=A free and open vulnerability database with tools to track, aggregate, and correlate package vulnerabilities
45+
org.opencontainers.image.licenses=Apache-2.0
46+
annotations: |
47+
org.opencontainers.image.title=VulnerableCode
48+
org.opencontainers.image.description=A free and open vulnerability database with tools to track, aggregate, and correlate package vulnerabilities
49+
org.opencontainers.image.licenses=Apache-2.0
4350
4451
- name: Set up Docker Buildx
4552
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0

0 commit comments

Comments
 (0)