mirror of
https://github.com/kirameki-cafe/Tenki.git
synced 2026-09-13 10:49:09 +00:00
👷 ci: build on tag
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user