This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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