ci: publish artifacts only on version tags

This commit is contained in:
ShukeBta
2026-05-29 00:32:13 +08:00
parent fef90aea5d
commit 32d7fb0f45
4 changed files with 49 additions and 9 deletions
+1 -5
View File
@@ -2,9 +2,7 @@ name: Publish Docker image
on:
push:
branches: [main]
tags: ['v*', 'MediaStationGo-v*']
workflow_dispatch:
permissions:
contents: read
@@ -32,10 +30,8 @@ jobs:
with:
images: ghcr.io/shukebta/mediastation-go
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=raw,value=latest
type=ref,event=tag
type=sha,prefix=
- name: Build & push
uses: docker/build-push-action@v6
-1
View File
@@ -3,7 +3,6 @@ name: Publish release packages
on:
push:
tags: ['v*', 'MediaStationGo-v*']
workflow_dispatch:
permissions:
contents: write