mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-01-31 11:46:16 +08:00
更新docker-push与github action,防止提交覆盖docker hub版本
This commit is contained in:
8
.github/workflows/docker-build.yml
vendored
8
.github/workflows/docker-build.yml
vendored
@@ -2,12 +2,8 @@ name: Build and Push Docker Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'backend/**'
|
||||
- 'frontend/**'
|
||||
- 'docker/**'
|
||||
- '.github/workflows/**'
|
||||
tags:
|
||||
- 'v*' # 只在推送 v 开头的 tag 时触发(如 v1.0.0)
|
||||
workflow_dispatch: # 手动触发
|
||||
|
||||
# 并发控制:同一分支只保留最新的构建,取消之前正在运行的
|
||||
|
||||
Reference in New Issue
Block a user