更新 '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
loser 2022-06-15 15:05:38 +08:00
parent d63038ef86
commit e311357f5e

View File

@ -13,14 +13,41 @@ steps:
registry: registry.cn-shanghai.aliyuncs.com
repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test
username:
from_secret: xs765911
from_secret: registry_username
password:
from_secret: loser7659
from_secret: registry_password
use_cache: true
# event为push且分支为master的时候自动打latest为tag则会根据tag自动生成
tag:
- latest
- sha_${DRONE_COMMIT_SHA}
when:
status:
- "success"
---
kind: pipeline
type: docker
name: BuildProd
trigger:
event: [tag]
steps:
- name: BuildToRegistry
image: plugins/docker
# depends_on:
# - CheckCode
settings:
registry: registry.cn-shanghai.aliyuncs.com
repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test
username:
from_secret: registry_username
password:
from_secret: registry_password
use_cache: true
# event为push且分支为master的时候自动打latest为tag则会根据tag自动生成
auto_tag: true
when:
status:
- "success"