Skip to content

Commit 2b50a9a

Browse files
committed
Add tags to image
1 parent e85cb14 commit 2b50a9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
2525
with:
2626
images: codeguru42/go-capture
27+
tags: |
28+
type=raw,value=latest,enable={{is_default_branch}}
29+
type=semver,pattern={{version}}
30+
type=semver,pattern={{major}}.{{minor}}
31+
type=sha
2732
2833
- name: Build and push Docker image
2934
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671

0 commit comments

Comments
 (0)