chore: separate build and deploy pipeline
* this allows for more granular run conditions and constraints
This commit is contained in:
parent
eba2daba13
commit
9fc744822a
48
.drone.yml
48
.drone.yml
@ -24,11 +24,49 @@ steps:
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: 'build and deploy'
|
||||
name: build
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
depends_on:
|
||||
- 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:
|
||||
- name: hugo-extended
|
||||
pull: if-not-exists
|
||||
@ -47,10 +85,6 @@ steps:
|
||||
- success
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
- cron
|
||||
depends_on:
|
||||
- hugo-extended
|
||||
environment:
|
||||
@ -89,7 +123,7 @@ trigger:
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- 'build and deploy'
|
||||
- deploy
|
||||
|
||||
steps:
|
||||
- name: discord
|
||||
@ -135,7 +169,7 @@ trigger:
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- 'build and deploy'
|
||||
- deploy
|
||||
|
||||
steps:
|
||||
- name: discord
|
||||
|
Loading…
Reference in New Issue
Block a user