Skip to content

Commit 3a17372

Browse files
authored
Merge pull request #259 from lukaszbudnik/added-missing-tags-input-for-event-branch
added missing tags input for event branch
2 parents a7553b0 + 913b57c commit 3a17372

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
push_to_registries:
12-
name: Push Docker image to Docker hub and GHCR registries
12+
name: Push Docker image to Docker Hub and ghcr.io registries
1313
runs-on: ubuntu-latest
1414
permissions:
1515
packages: write
@@ -38,6 +38,12 @@ jobs:
3838
images: |
3939
lukasz/migrator
4040
ghcr.io/${{ github.repository }}
41+
tags: |
42+
type=ref,event=branch
43+
type=ref,event=pr
44+
type=semver,pattern={{version}}
45+
type=semver,pattern={{major}}.{{minor}}
46+
type=semver,pattern={{major}}
4147
4248
- name: Build and push Docker images
4349
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)