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 1322fd3 commit 53f8769Copy full SHA for 53f8769
1 file changed
.github/workflows/push-to-registry.yaml
@@ -3,6 +3,7 @@ name: push-to-registry
3
on:
4
push:
5
branches: ['main']
6
+ tags: ['v*']
7
8
env:
9
REGISTRY: ghcr.io
@@ -33,13 +34,17 @@ jobs:
33
34
uses: docker/metadata-action@v5
35
with:
36
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
37
+ tags: |
38
+ type=ref,event=branch
39
+ type=semver,pattern=v{{version}}
40
+ type=semver,pattern=v{{major}}.{{minor}}
41
42
- name: Build and push Docker image
43
id: push
44
uses: docker/build-push-action@v5
45
46
context: .
- push: true
47
+ push: ${{ github.event_name != 'pull_request' }}
48
tags: ${{ steps.meta.outputs.tags }}
49
labels: ${{ steps.meta.outputs.labels }}
50
0 commit comments