Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix(ci): better version tagging

Matthew Kilgorebf6151ed614a
diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml
index 56c756c0..d2f82a25 100644
--- a/.github/workflows/docker-publish.yaml
+++ b/.github/workflows/docker-publish.yaml
@@ -64,6 +64,11 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ tags: |
+ type=ref,event=branch
+ type=ref,event=pr
+ type=semver,pattern={{version}}
+ type=semver,pattern={{major}}.{{minor}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action