fix: use settings instead of commands for kaniko
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
@@ -31,8 +31,7 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: dir:///drone/src
|
||||
no_push: true
|
||||
#destination: ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA:-build-${DRONE_BUILD_NUMBER}}
|
||||
destination: ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA}
|
||||
verbosity: debug
|
||||
|
||||
- name: dev-deploy
|
||||
@@ -75,14 +74,10 @@ steps:
|
||||
environment:
|
||||
DOCKER_CONFIG:
|
||||
from_secret: docker_config
|
||||
commands:
|
||||
- ls -la
|
||||
- cat Dockerfile
|
||||
- >-
|
||||
/kaniko/executor
|
||||
--context .
|
||||
--destination ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA}
|
||||
--destination ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: dir:///drone/src
|
||||
destination: ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0
|
||||
|
||||
- name: prod-deploy
|
||||
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
|
||||
|
||||
Reference in New Issue
Block a user