fix: use settings instead of commands for kaniko
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-22 17:28:58 +00:00
parent 6f917c8f88
commit cb0a8615df

View File

@@ -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