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