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 ace0bf8 commit a99e65fCopy full SHA for a99e65f
.github/workflows/docker.yaml
@@ -3,9 +3,8 @@ name: Create and publish a Docker image
3
on:
4
push:
5
branches: ['main']
6
- release:
7
- types:
8
- - created
+ tags:
+ - v**
9
10
env:
11
REGISTRY: ghcr.io
@@ -31,9 +30,11 @@ jobs:
31
30
32
- name: Extract metadata (tags, labels) for Docker
33
id: meta
34
- uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
+ uses: docker/metadata-action@v3.6.2
35
with:
36
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ tags: |
37
+ type=semver,pattern={{version}}
38
39
- name: Build and push Docker image
40
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
0 commit comments