Skip to content

Commit ea05469

Browse files
authored
Merge pull request #5 from kusaridev/146-build-version-tag
build on tag push
2 parents e2e66e8 + 8df714f commit ea05469

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
tags:
7+
- 'v*'
68
permissions:
79
contents: read
810
packages: write # To publish container images to GHCR
@@ -24,3 +26,9 @@ jobs:
2426
run: |
2527
ko build --bare \
2628
--tags=latest,sha.${{ github.sha }}
29+
30+
- name: run ko build and publish image
31+
if: startsWith(github.ref, 'refs/tags/')
32+
run: |
33+
ko build --bare \
34+
--tags=latest,sha.${{ github.sha }},${{ github.ref_name }}

0 commit comments

Comments
 (0)