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
|
||||
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
||||
settings:
|
||||
username: 100024540033
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: ccr.ccs.tencentyun.com/violin/todo-backend
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
destination: ccr.ccs.tencentyun.com/violin/todo-backend:latest
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
|
||||
@@ -76,12 +70,7 @@ steps:
|
||||
##
|
||||
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
|
||||
settings:
|
||||
username: 100024540033
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: ccr.ccs.tencentyun.com/violin/todo-backend
|
||||
tags:
|
||||
- v1.0.0
|
||||
destination: ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user