chore: separate build and deploy pipeline
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

* this allows for more granular run conditions and constraints
This commit is contained in:
surtur 2020-09-25 19:34:38 +02:00
parent eba2daba13
commit 9fc744822a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -24,11 +24,49 @@ 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
steps:
- name: hugo-extended
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
when:
event:
exclude:
- cron
- tag
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: steps:
- name: hugo-extended - name: hugo-extended
pull: if-not-exists pull: if-not-exists
@ -47,10 +85,6 @@ steps:
- success - success
branch: branch:
- master - master
event:
- push
- tag
- cron
depends_on: depends_on:
- hugo-extended - hugo-extended
environment: environment:
@ -89,7 +123,7 @@ trigger:
- failure - failure
depends_on: depends_on:
- 'build and deploy' - deploy
steps: steps:
- name: discord - name: discord
@ -135,7 +169,7 @@ trigger:
- failure - failure
depends_on: depends_on:
- 'build and deploy' - deploy
steps: steps:
- name: discord - name: discord