2021-01-06 01:49:03 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-14 01:44:45 +01:00
|
|
|
type: docker
|
2021-01-06 01:49:03 +01:00
|
|
|
name: dockerhub-build-trigger
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: call webhook
|
|
|
|
pull: always
|
|
|
|
image: bash:latest
|
|
|
|
environment:
|
|
|
|
ENDPOINT:
|
|
|
|
from_secret: DOCKERHUB_ENDPOINT
|
|
|
|
commands:
|
2021-01-14 01:44:45 +01:00
|
|
|
- apk add --no-cache curl
|
|
|
|
- curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/master/curl.it
|
|
|
|
- bash ./curl.it $ENDPOINT
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- cron
|
2021-01-14 01:46:55 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: kaniko-build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: banzaicloud/drone-kaniko
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- dockerhub-build-trigger
|