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 adb183d commit 5c1c426Copy full SHA for 5c1c426
.github/workflows/deploy.yaml renamed to .github/workflows/publish.yaml
@@ -1,11 +1,14 @@
1
-name: Deploy
+name: Publish
2
+
3
on:
4
push:
5
branches:
- - master
6
-
7
-env:
8
- IMAGE_NAME: ghcr.io/${{ github.repository }}
+ - 'master'
+ tags:
+ - 'v*'
9
+ pull_request:
10
+ branches:
11
12
13
jobs:
14
report:
@@ -40,9 +43,12 @@ jobs:
40
43
id: meta
41
44
uses: docker/metadata-action@v4
42
45
with:
- images: |
- ${{env.IMAGE_NAME}}:${{ github.ref_name }}
- ${{env.IMAGE_NAME}}:master
46
+ tags: |
47
+ type=ref,event=branch
48
+ type=ref,event=pr
49
+ type=semver,pattern={{version}}
50
+ type=semver,pattern={{major}}.{{minor}}
51
+ type=sha
52
53
- name: Build and push Docker images
54
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
.github/workflows/release.yaml
0 commit comments