refactor: update .drone.yml logic
This commit is contained in:
parent
f449013be8
commit
bdeddff68c
51
.drone.yml
51
.drone.yml
@ -30,6 +30,12 @@ platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- pull
|
||||
|
||||
@ -37,18 +43,47 @@ steps:
|
||||
- name: hugo-extended
|
||||
pull: if-not-exists
|
||||
image: immawanderer/fedora-hugo:latest
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
commands:
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
- hugo version
|
||||
- hugo --gc=true --minify
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker-build
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
steps:
|
||||
- name: docker-build
|
||||
pull: always
|
||||
image: tmaier/docker-compose:latest
|
||||
depends_on:
|
||||
- hugo-extended
|
||||
volumes:
|
||||
- name: s
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker-compose build
|
||||
|
||||
volumes:
|
||||
- name: s
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -69,7 +104,7 @@ trigger:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
- docker-build
|
||||
|
||||
steps:
|
||||
- name: hugo-extended
|
||||
@ -118,7 +153,7 @@ clone:
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- "*"
|
||||
- testing
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
Loading…
Reference in New Issue
Block a user