Skip to content

Commit b3353d0

Browse files
committed
fix(ci): 镜像构建仅由打 tag 触发,移除 push to main 触发
之前推送到 main 分支也会构建并推送镜像, 改为仅通过 release workflow(打 tag)或手动 dispatch 触发。 Made-with: Cursor
1 parent 4f33cd5 commit b3353d0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/build-images.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build and Push Images
22

33
on:
4-
push:
5-
branches: ["main"]
64
workflow_call:
75
inputs:
86
version:
@@ -70,7 +68,7 @@ jobs:
7068
type=semver,pattern={{major}},value=${{ inputs.version }},enable=${{ inputs.version != '' }}
7169
type=semver,pattern={{version}}
7270
type=semver,pattern={{major}}.{{minor}}
73-
type=raw,value=latest,enable=${{ inputs.version != '' || github.ref_name == github.event.repository.default_branch }}
71+
type=raw,value=latest,enable=${{ inputs.version != '' }}
7472
7573
- name: Build and push
7674
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)