Skip to content

Commit 105529c

Browse files
authored
Added versioned tag alongside latest on docker-hub deployment (alexjustesen#330)
1 parent 55d65c8 commit 105529c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cd-docker-hub.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ jobs:
4747
uses: docker/metadata-action@v4
4848
with:
4949
images: ${{ env.DOCKER_IMAGE }}
50+
tags: |
51+
type=semver,pattern={{version}}
52+
latest
5053
5154
- name: Build and push image to Docker Hub
5255
uses: docker/build-push-action@v3
5356
with:
5457
context: .
5558
push: true
5659
platforms: ${{ env.PLATFORMS }}
57-
tags: ${{ env.DOCKER_IMAGE }}:latest
60+
tags: ${{ steps.meta.outputs.tags }}
5861
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)