Skip to content

Commit c141157

Browse files
committed
add correct tags to docker images and add version tags
1 parent 14c7112 commit c141157

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/push.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ name: Publish Docker image
1111

1212
on:
1313
push:
14-
branches: [main]
14+
branches:
15+
- 'main'
16+
tags:
17+
- '*'
1518

1619
jobs:
1720
push_to_registry:
@@ -38,6 +41,11 @@ jobs:
3841
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
3942
with:
4043
images: kodermax/kubectl-aws-eks
44+
tags: |
45+
type=semver,pattern={{version}}
46+
type=semver,pattern={{major}}.{{minor}}
47+
type=semver,pattern={{major}}
48+
type=ref,event=branch
4149
4250
- name: Build and push Docker image
4351
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671

0 commit comments

Comments
 (0)