We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e9a70 commit d0f6fd4Copy full SHA for d0f6fd4
.github/workflows/docker.yml
@@ -2,6 +2,10 @@ name: Create and publish a Docker image
2
3
on:
4
push:
5
+ branches:
6
+ - main
7
+ release:
8
+ types: [published]
9
10
env:
11
REGISTRY: ghcr.io
@@ -44,6 +48,10 @@ jobs:
44
48
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
45
49
with:
46
50
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
51
+ tags: |
52
+ type=raw,value=latest,enable=${{ github.event_name == 'push' }}
53
+ type=ref,event=tag
54
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
47
55
56
- name: Set up QEMU
57
uses: docker/setup-qemu-action@v3
@@ -57,5 +65,3 @@ jobs:
65
platforms: linux/amd64,linux/arm64
58
66
tags: ${{ steps.meta.outputs.tags }}
59
67
labels: ${{ steps.meta.outputs.labels }}
60
-
61
0 commit comments