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

This commit is contained in:
Agent
2026-03-22 03:56:41 +00:00
parent 606e1402f2
commit 48512a4027

View File

@@ -17,15 +17,16 @@ steps:
- mvn clean package -DskipTests - mvn clean package -DskipTests
- name: dev-build-image - name: dev-build-image
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64 image: ccr.ccs.tencentyun.com/violin/kaniko-project-executor:latest
environment:
DOCKER_CONFIG:
from_secret: docker_config
commands: commands:
- docker build -t ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} . - >-
- docker push ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} /kaniko/executor
settings: --context .
username: --destination ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA}
from_secret: registry_username --destination ccr.ccs.tencentyun.com/violin/todo-backend:latest
password:
from_secret: registry_password
- name: dev-deploy - name: dev-deploy
image: ccr.ccs.tencentyun.com/violin/kubectl:latest image: ccr.ccs.tencentyun.com/violin/kubectl:latest
@@ -55,15 +56,16 @@ steps:
- mvn clean package -DskipTests - mvn clean package -DskipTests
- name: prod-build-image - name: prod-build-image
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64 image: ccr.ccs.tencentyun.com/violin/kaniko-project-executor:latest
environment:
DOCKER_CONFIG:
from_secret: docker_config
commands: commands:
- docker build -t ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} . - >-
- docker push ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} /kaniko/executor
settings: --context .
username: --destination ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA}
from_secret: registry_username --destination ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0
password:
from_secret: registry_password
- name: prod-deploy - name: prod-deploy
image: ccr.ccs.tencentyun.com/violin/kubectl:latest image: ccr.ccs.tencentyun.com/violin/kubectl:latest