fix: switch Drone pipeline from docker to kaniko for k8s runner

This commit is contained in:
Yaojia Wang
2026-03-09 23:30:58 +01:00
parent d05cb55cb0
commit ec76e92f1e

View File

@@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
type: docker type: kubernetes
name: build-and-push name: build-and-push
trigger: trigger:
@@ -11,12 +11,13 @@ trigger:
steps: steps:
- name: build-and-push - name: build-and-push
image: plugins/docker image: gcr.io/kaniko-project/executor:debug
settings: commands:
repo: 192.168.68.11:30500/invest-api - >
registry: 192.168.68.11:30500 /kaniko/executor
insecure: true --context=/drone/src
tags: --dockerfile=Dockerfile
- ${DRONE_COMMIT_SHA:0:8} --destination=192.168.68.11:30500/invest-api:${DRONE_COMMIT_SHA:0:8}
- latest --destination=192.168.68.11:30500/invest-api:latest
dockerfile: Dockerfile --insecure
--skip-tls-verify