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