From bdeddff68c93e397c4ba9aacb46ac43b566da46c Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 3 Oct 2020 20:29:34 +0200 Subject: [PATCH] refactor: update .drone.yml logic --- .drone.yml | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index cd600fc..1b37a5e 100644 --- a/.drone.yml +++ b/.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