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.
2 parents c5f4433 + 38635ab commit 7ce54cdCopy full SHA for 7ce54cd
.github/workflows/docker-image.yml
@@ -28,6 +28,16 @@ jobs:
28
[worker.oci]
29
max-parallelism = 2
30
31
+ - name: Generate Image Tags
32
+ id: meta
33
+ uses: docker/metadata-action@v4
34
+ with:
35
+ images: ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPOSITORY }}
36
+ tags: |
37
+ type=semver,pattern={{version}}
38
+ type=semver,pattern={{major}}.{{minor}}
39
+ type=semver,pattern={{major}}
40
+
41
- name: Login to Docker Hub
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_REPOSITORY }}:latest
53
+ tags: ${{ steps.meta.outputs.tags }}
54
+ labels: ${{ steps.meta.outputs.labels }}
0 commit comments