refactor: update .drone.yml logic
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build encountered an error

This commit is contained in:
surtur 2020-10-03 20:29:34 +02:00
parent f449013be8
commit bdeddff68c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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