We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53873c commit e610e86Copy full SHA for e610e86
1 file changed
.github/workflows/PublishDockerImage.yml
@@ -3,6 +3,8 @@ name: Create and publish a Docker image
3
on:
4
push:
5
branches: ['main']
6
+ tags:
7
+ - 'v*.*.*'
8
pull_request:
9
types: [opened, synchronize, reopened]
10
@@ -34,6 +36,13 @@ jobs:
34
36
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
35
37
with:
38
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
39
+ tags: |
40
+ type=ref,event=branch
41
+ type=ref,event=pr
42
+ type=semver,pattern={{version}}
43
+ type=semver,pattern={{major}}.{{minor}}
44
+ type=semver,pattern={{major}}
45
+ type=sha
46
47
- name: Build and push Docker image
48
id: push
@@ -50,4 +59,3 @@ jobs:
50
59
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
51
60
subject-digest: ${{ steps.push.outputs.digest }}
52
61
push-to-registry: true
53
-
0 commit comments