refactor: move kaniko build to its own pipeline
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
8f9e6dca2f
commit
68c5d6b57f
22
.drone.yml
22
.drone.yml
|
@ -20,18 +20,18 @@ steps:
|
|||
- curl -sO https://git.dotya.ml/wanderer/docker-fedora-hugo/raw/branch/master/curl.it
|
||||
- bash ./curl.it $ENDPOINT
|
||||
|
||||
- name: grab Dockerfile
|
||||
pull: always
|
||||
image: bash:latest
|
||||
commands:
|
||||
- apk add --no-cache curl
|
||||
- curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/${DRONE_COMMIT_BRANCH}/Dockerfile
|
||||
|
||||
- name: kaniko build
|
||||
---
|
||||
kind: pipeline
|
||||
name: kaniko-build
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
image: banzaicloud/drone-kaniko
|
||||
depends_on:
|
||||
- "grab Dockerfile"
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
|
@ -59,7 +59,7 @@ trigger:
|
|||
- failure
|
||||
|
||||
depends_on:
|
||||
- dockerhub-build-trigger
|
||||
- kaniko-build
|
||||
|
||||
steps:
|
||||
- name: discord
|
||||
|
@ -105,7 +105,7 @@ trigger:
|
|||
- failure
|
||||
|
||||
depends_on:
|
||||
- dockerhub-build-trigger
|
||||
- kaniko-build
|
||||
|
||||
steps:
|
||||
- name: discord
|
||||
|
|
Loading…
Reference in New Issue