drone-test/.drone.yml

26 lines
612 B
YAML
Raw Normal View History

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
2022-06-15 14:10:45 +08:00
repo: registry.cn-shanghai.aliyuncs.com/docker-echo/docker/drone-test
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"