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 kind: pipeline
type: docker
name: dockerhub-build-trigger name: dockerhub-build-trigger
platform: platform:
os: linux
arch: amd64 arch: amd64
clone: clone:
@ -20,16 +22,17 @@ 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
--- ---
kind: pipeline kind: pipeline
type: docker
name: kaniko-build name: kaniko-build
platform: platform:
os: linux
arch: amd64 arch: amd64
depends_on: depends_on:
- dockerhub-build-trigger - dockerhub-build-trigger
steps: steps:
- name: build - name: build
@ -39,9 +42,9 @@ steps:
dockerfile: Dockerfile dockerfile: Dockerfile
context: . context: .
--- ---
kind: pipeline kind: pipeline
type: docker
name: notifications name: notifications
platform: platform:
@ -51,21 +54,8 @@ platform:
clone: clone:
disable: true disable: true
trigger:
branch:
- master
event:
- push
- tag
status:
- success
- failure
depends_on:
- kaniko-build
steps: steps:
- name: discord - name: discord
pull: if-not-exists pull: if-not-exists
image: appleboy/drone-discord:latest image: appleboy/drone-discord:latest
settings: settings:
@ -85,8 +75,22 @@ steps:
webhook_token: webhook_token:
from_secret: discord_webhook_token from_secret: discord_webhook_token
trigger:
branch:
- master
event:
- push
- tag
status:
- success
- failure
depends_on:
- kaniko-build
--- ---
kind: pipeline kind: pipeline
type: docker
name: notifications-cronbuild name: notifications-cronbuild
platform: platform:
@ -96,22 +100,8 @@ platform:
clone: clone:
disable: true disable: true
trigger:
branch:
- master
event:
- cron
cron:
- nightly
status:
- success
- failure
depends_on:
- kaniko-build
steps: steps:
- name: discord - name: discord
pull: always pull: always
image: appleboy/drone-discord:latest image: appleboy/drone-discord:latest
settings: settings:
@ -129,3 +119,17 @@ steps:
from_secret: discord_webhook_hourly_id from_secret: discord_webhook_hourly_id
webhook_token: webhook_token:
from_secret: discord_webhook_hourly_token from_secret: discord_webhook_hourly_token
trigger:
branch:
- master
event:
- cron
cron:
- nightly
status:
- success
- failure
depends_on:
- kaniko-build