use the tag for the image
diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml
index 022761a..345a6ac 100644
--- a/.github/workflows/build-and-push.yml
+++ b/.github/workflows/build-and-push.yml
@@ -38,13 +38,7 @@
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}}
- type=semver,pattern={{major}}
- type=sha,prefix={{branch}}-
- type=raw,value=latest,enable={{is_default_branch}}
+ type=ref,event=tag
- name: Build and push Docker image
uses: docker/build-push-action@v5