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 31214d2 commit d119f19Copy full SHA for d119f19
.github/workflows/docker-image.yml
@@ -28,6 +28,16 @@ jobs:
28
[worker.oci]
29
max-parallelism = 2
30
31
+ - name: docker meta
32
+ id: meta
33
+ uses: docker/metadata-action@v4
34
+ with:
35
+ images: ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPO }}
36
+ tags: |
37
+ type=semver,pattern={{version}}
38
+ type=semver,pattern={{major}}.{{minor}}
39
+ type=semver,pattern={{major}}
40
+
41
- name: docker login
42
uses: docker/login-action@v2
43
with:
@@ -40,4 +50,5 @@ jobs:
50
context: .
51
platforms: linux/amd64,linux/arm64,linux/arm/v7
52
push: true
- tags: ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPO }}:latest
53
+ tags: ${{ steps.meta.outputs.tags }}
54
+ labels: ${{ steps.meta.outputs.labels }}
0 commit comments