This commit is contained in:
parent
f3d6cd39ea
commit
999fea0454
35
.drone.yml
35
.drone.yml
@ -10,12 +10,12 @@ steps:
|
|||||||
- name: BuildToRegistry
|
- name: BuildToRegistry
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: registry.cn-shanghai.aliyuncs.com
|
registry: docker.echol.cn
|
||||||
repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test
|
repo: docker.echol.cn/drone_docker/drone-test
|
||||||
username:
|
username:
|
||||||
from_secret: registry_username
|
from_secret: harbor_user
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: harbor_pwd
|
||||||
use_cache: true
|
use_cache: true
|
||||||
# event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成
|
# event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成
|
||||||
tag:
|
tag:
|
||||||
@ -26,30 +26,3 @@ steps:
|
|||||||
- "success"
|
- "success"
|
||||||
- echo hello
|
- echo hello
|
||||||
- echo world
|
- echo world
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: BuildProd
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event: [tag]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: BuildToRegistry
|
|
||||||
image: plugins/docker
|
|
||||||
# depends_on:
|
|
||||||
# - CheckCode
|
|
||||||
settings:
|
|
||||||
registry: registry.cn-shanghai.aliyuncs.com
|
|
||||||
repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test
|
|
||||||
username:
|
|
||||||
from_secret: registry_username
|
|
||||||
password:
|
|
||||||
from_secret: registry_password
|
|
||||||
use_cache: true
|
|
||||||
# event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成
|
|
||||||
auto_tag: true
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- "success"
|
|
Loading…
Reference in New Issue
Block a user