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