mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 19:36:36 +08:00
ci: publish artifacts only on version tags
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,6 @@ name: Publish release packages
|
||||
on:
|
||||
push:
|
||||
tags: ['v*', 'MediaStationGo-v*']
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
Reference in New Issue
Block a user