Skip to content

Commit 66a1184

Browse files
author
Adriano Sanges
committed
Enhance Docker image workflow by adding support for tagging on push events and refining tag configurations for better versioning.
1 parent b3df5a2 commit 66a1184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: Create and publish a Docker image
55
on:
66
push:
77
branches: ['main']
8+
tags: ['*']
89
release:
910
types: [created]
1011

@@ -40,6 +41,9 @@ jobs:
4041
uses: docker/metadata-action@v5
4142
with:
4243
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44+
tags: |
45+
type=ref,event=branch
46+
type=semver,pattern={{version}}
4347
flavor: |
4448
latest=auto
4549
prefix=

0 commit comments

Comments
 (0)