This commit is contained in:
@@ -15,6 +15,12 @@ trigger:
|
||||
branch: [main, release/*]
|
||||
- event: tag
|
||||
|
||||
# 核心:启用 Drone 内置 Git 克隆配置
|
||||
clone:
|
||||
disable: false # 启用内置克隆(默认就是 false,显式声明更稳妥)
|
||||
depth: 1 # 浅克隆,加快速度
|
||||
tags: true # 拉取标签(适配 Tag 触发)
|
||||
|
||||
steps:
|
||||
# 登录容器仓库(如 Harbor、Docker Hub、阿里云 ACR)
|
||||
- name: registry login
|
||||
|
||||
Reference in New Issue
Block a user