Skip to content

Commit 55a3c6e

Browse files
committed
use semantic version tagging for docker images
we've never tagged stable releases, but should really do so. This change will cause our docker images to be tagged following typical semver fashion... the initial `v1.0.0` release will be tagged `v1`, `v1.0`, `v1.0.0`, and `latest`. Updates #104 Signed-off-by: Will Norris <[email protected]>
1 parent 187497a commit 55a3c6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker.yml

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
4646
with:
4747
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
48+
tags: |
49+
type=ref,event=branch
50+
type=semver,pattern={{version}}
51+
type=semver,pattern={{major}}.{{minor}}
52+
type=semver,pattern={{major}}
4853
4954
- name: Build and push Docker image
5055
id: build-and-push

0 commit comments

Comments
 (0)