diff --git a/.drone.yml b/.drone.yml index 930931e..14464a7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,23 +1,3 @@ ---- -kind: pipeline -type: docker -name: pull - -clone: - disable: true - -trigger: - event: - exclude: [push, pull_request] - -steps: - - name: fedora-hugo - pull: always - image: immawanderer/fedora-hugo:linux-amd64 - commands: - - uname -r - - cat /etc/fedora-release - --- kind: pipeline type: docker @@ -31,12 +11,18 @@ trigger: branch: master event: [push, pull_request] -depends_on: - - pull - steps: + - name: pull fedora-hugo + pull: always + image: immawanderer/fedora-hugo:linux-amd64 + commands: + - uname -r + - cat /etc/fedora-release + - name: hugo-extended pull: if-not-exists + depends-on: + - pull fedora-hugo image: immawanderer/fedora-hugo:linux-amd64 commands: - git submodule init @@ -71,8 +57,27 @@ depends_on: - build steps: + - name: pull fedora-hugo + pull: always + depends_on: [clone] + image: immawanderer/fedora-hugo:linux-amd64 + commands: + - uname -r + - cat /etc/fedora-release + + - name: pull tmaier/docker-compose + pull: always + depends_on: [clone] + image: tmaier/docker-compose:latest + commands: + - uname -r + - cat /etc/os-release + - name: hugo-extended pull: if-not-exists + depends-on: + - pull fedora-hugo + - pull tmaier/docker-compose image: immawanderer/fedora-hugo:linux-amd64 commands: - git submodule init