feat: refactor .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

* syntax as per https://github.com/drone/drone/blob/master/.drone.yml
* fixed wrong yaml indentation that drone had to chew on...
* added 'type: docker' and 'os: linux' to every pipeline where relevant
This commit is contained in:
surtur 2021-01-14 01:36:16 +01:00
parent 250e9f710d
commit e391f68730
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -1,8 +1,10 @@
---
kind: pipeline
type: docker
name: dockerhub-build-trigger
platform:
os: linux
arch: amd64
clone:
@ -20,12 +22,13 @@ steps:
- curl -sO https://git.dotya.ml/wanderer/docker-fedora-hugo/raw/branch/master/curl.it
- bash ./curl.it $ENDPOINT
---
kind: pipeline
type: docker
name: kaniko-build
platform:
os: linux
arch: amd64
depends_on:
@ -39,9 +42,9 @@ steps:
dockerfile: Dockerfile
context: .
---
kind: pipeline
type: docker
name: notifications
platform:
@ -51,19 +54,6 @@ platform:
clone:
disable: true
trigger:
branch:
- master
event:
- push
- tag
status:
- success
- failure
depends_on:
- kaniko-build
steps:
- name: discord
pull: if-not-exists
@ -85,8 +75,22 @@ steps:
webhook_token:
from_secret: discord_webhook_token
trigger:
branch:
- master
event:
- push
- tag
status:
- success
- failure
depends_on:
- kaniko-build
---
kind: pipeline
type: docker
name: notifications-cronbuild
platform:
@ -96,20 +100,6 @@ platform:
clone:
disable: true
trigger:
branch:
- master
event:
- cron
cron:
- nightly
status:
- success
- failure
depends_on:
- kaniko-build
steps:
- name: discord
pull: always
@ -129,3 +119,17 @@ steps:
from_secret: discord_webhook_hourly_id
webhook_token:
from_secret: discord_webhook_hourly_token
trigger:
branch:
- master
event:
- cron
cron:
- nightly
status:
- success
- failure
depends_on:
- kaniko-build