general .drone.yml clean-up #16

Merged
dalahast merged 3 commits from clean-pipelines into master 2020-09-25 20:57:37 +02:00

@ -24,7 +24,11 @@ steps:
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: 'build and deploy' name: build
platform:
os: linux
arch: amd64
depends_on: depends_on:
- pull - pull
@ -34,8 +38,40 @@ steps:
pull: if-not-exists pull: if-not-exists
image: immawanderer/fedora-hugo:latest image: immawanderer/fedora-hugo:latest
when: when:
status: branch:
- success - master
event:
- push
- pull_request
commands:
- git submodule init
- git submodule update
- hugo version
- hugo --gc=true --minify
---
kind: pipeline
type: docker
name: deploy
platform:
os: linux
arch: amd64
trigger:
event:
exclude:
- pull_request
- tag
depends_on:
- build
steps:
- name: hugo-extended
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
commands: commands:
- git submodule init - git submodule init
- git submodule update - git submodule update
@ -50,10 +86,6 @@ steps:
- success - success
branch: branch:
- master - master
event:
- push
- tag
- cron
depends_on: depends_on:
- hugo-extended - hugo-extended
environment: environment:
@ -92,7 +124,7 @@ trigger:
- failure - failure
depends_on: depends_on:
- 'build and deploy' - deploy
steps: steps:
- name: discord - name: discord
@ -138,7 +170,7 @@ trigger:
- failure - failure
depends_on: depends_on:
- 'build and deploy' - deploy
steps: steps:
- name: discord - name: discord