chore: 简化 kaniko 配置,使用 destination
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -27,13 +27,7 @@ steps:
|
|||||||
# 使用 plugin/kaniko
|
# 使用 plugin/kaniko
|
||||||
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
||||||
settings:
|
settings:
|
||||||
username: 100024540033
|
destination: ccr.ccs.tencentyun.com/violin/todo-backend:latest
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-backend
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
|
||||||
@@ -76,12 +70,7 @@ steps:
|
|||||||
##
|
##
|
||||||
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
||||||
settings:
|
settings:
|
||||||
username: 100024540033
|
destination: ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-backend
|
|
||||||
tags:
|
|
||||||
- v1.0.0
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user