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 125767a commit a7d85c1Copy full SHA for a7d85c1
1 file changed
.github/workflows/ci.yml
@@ -1,6 +1,9 @@
1
name: CI
2
3
-on: [push]
+on:
4
+ push:
5
+ release:
6
+ types: [published]
7
8
jobs:
9
test:
@@ -44,7 +47,7 @@ jobs:
44
47
45
48
push-docker:
46
49
needs: test
- if: github.ref == 'refs/heads/main'
50
+ if: github.ref == 'refs/heads/main' || github.event_name == 'release'
51
runs-on: ubuntu-latest
52
permissions:
53
contents: read
@@ -66,6 +69,12 @@ jobs:
66
69
uses: docker/metadata-action@v5
67
70
with:
68
71
images: ghcr.io/${{ github.repository }}
72
+ flavor: |
73
+ latest=false
74
+ tags: |
75
+ type=raw,value=latest,enable={{is_default_branch}}
76
+ type=semver,pattern={{version}}
77
+ type=semver,pattern={{major}}.{{minor}}
78
79
- name: Build and push Docker image
80
uses: docker/build-push-action@v6
0 commit comments