drone-test/.drone.yml
loser 8aec2794e8
All checks were successful
continuous-integration/drone/push Build is passing
更新 '.drone.yml'
2022-06-17 17:15:21 +08:00

30 lines
638 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

kind: pipeline
type: docker
name: BuildDev
trigger:
event: [push]
branch: [ master ]
steps:
- name: BuildToRegistry
image: plugins/docker
settings:
registry: docker.echol.cn
repo: docker.echol.cn/drone_docker/drone-test
insecure: true
username:
from_secret: harbor_user
password:
from_secret: harbor_pwd
use_cache: true
# event为push且分支为master的时候自动打latest为tag则会根据tag自动生成
tag:
- latest
- sha_${DRONE_COMMIT_SHA}
when:
status:
- "success"
- echo hello
- echo world