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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user