👷 ci: build on tag

This commit is contained in:
2026-05-27 19:29:08 +07:00
parent 01c25e8f19
commit 0746a89f78
@@ -3,6 +3,7 @@ name: Docker Build & Publish
on:
push:
branches: [ main ]
tags: [ "v*" ]
pull_request:
branches: [ main ]
@@ -20,7 +21,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
@@ -31,6 +32,7 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha
type=raw,value=latest,enable={{is_default_branch}}
@@ -40,4 +42,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}