26 lines
594 B
YAML
26 lines
594 B
YAML
kind: pipeline
|
||
type: docker
|
||
name: BuildDev
|
||
|
||
trigger:
|
||
event: [push]
|
||
branch: [ master ]
|
||
|
||
steps:
|
||
- name: BuildToRegistry
|
||
image: plugins/docker
|
||
settings:
|
||
registry: registry.cn-shanghai.aliyuncs.com
|
||
repo: registry.cn-shanghai.aliyuncs.com/docker-echo
|
||
username:
|
||
from_secret: xs765911
|
||
password:
|
||
from_secret: loser7659
|
||
use_cache: true
|
||
# event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成
|
||
tag:
|
||
- latest
|
||
- sha_${DRONE_COMMIT_SHA}
|
||
when:
|
||
status:
|
||
- "success" |