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
|
- curl -sO https://git.dotya.ml/wanderer/docker-fedora-hugo/raw/branch/master/curl.it
|
||||||
- bash ./curl.it $ENDPOINT
|
- 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
|
pull: always
|
||||||
image: banzaicloud/drone-kaniko
|
image: banzaicloud/drone-kaniko
|
||||||
depends_on:
|
|
||||||
- "grab Dockerfile"
|
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
@ -59,7 +59,7 @@ trigger:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- dockerhub-build-trigger
|
- kaniko-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: discord
|
- name: discord
|
||||||
|
@ -105,7 +105,7 @@ trigger:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- dockerhub-build-trigger
|
- kaniko-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: discord
|
- name: discord
|
||||||
|
|
Loading…
Reference in New Issue