ci: add reworked push logic; use own kaniko image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
76f606e4e1
commit
9ef9a9bc33
70
.drone.yml
70
.drone.yml
|
@ -1,47 +1,51 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: dockerhub-build-trigger
|
name: testing
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: call webhook
|
|
||||||
pull: always
|
|
||||||
image: bash:latest
|
|
||||||
environment:
|
|
||||||
ENDPOINT:
|
|
||||||
from_secret: dockerhub_endpoint
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache curl
|
|
||||||
- curl -sO https://git.dotya.ml/wanderer/docker-fedora-hugo/raw/branch/master/curl.it
|
|
||||||
- bash ./curl.it $ENDPOINT
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch: [master]
|
|
||||||
event: [push, cron]
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: kaniko-build
|
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: kaniko-build
|
||||||
pull: always
|
pull: always
|
||||||
image: ghcr.io/finitum/drone-kaniko:0.8.2
|
image: immawanderer/drone-kaniko:efd19c50
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- "refs/heads/feature-**"
|
||||||
|
- "refs/pull/**"
|
||||||
|
- "refs/tags/**"
|
||||||
|
event:
|
||||||
|
exclude: [cron]
|
||||||
|
|
||||||
|
- name: kaniko-publish
|
||||||
|
pull: always
|
||||||
|
image: immawanderer/drone-kaniko:efd19c50
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
context: .
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- linux-amd64
|
||||||
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
|
repo: immawanderer/fedora-hugo
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
event:
|
||||||
|
exclude: [pull_request, tag]
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event: [push, pull_request, cron, tag]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -85,7 +89,7 @@ trigger:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- kaniko-build
|
- testing
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -131,4 +135,4 @@ trigger:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- kaniko-build
|
- testing
|
||||||
|
|
Loading…
Reference in New Issue