fix: restrict tag pattern to versioned tags for Docker image builds

This commit is contained in:
2026-03-05 05:21:11 +07:00
parent 103050d879
commit 6984a872f1

View File

@@ -3,7 +3,7 @@ name: Build and Push to Personal Registry
on:
push:
tags:
- "*"
- v*
jobs:
docker:
@@ -29,7 +29,6 @@ jobs:
run: docker push $IMAGE:${{ github.ref_name }}
- name: Tag & push latest for release tags
if: startsWith(github.ref_name, 'v')
run: |
docker tag $IMAGE:${{ github.ref_name }} $IMAGE:latest
docker push $IMAGE:latest