fix: switch Drone pipeline from docker to kaniko for k8s runner
This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user