You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
617 B
YAML

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
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