From 84c53532085139d533b796dff022ebefe1861a90 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 22 Mar 2022 17:23:38 +0100 Subject: [PATCH] ci: update submodules in a separate step also, tweak step dependency graph a little --- .drone.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 14464a7..7a760eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,8 +12,17 @@ trigger: event: [push, pull_request] steps: + - name: submodules + pull: always + depends_on: [clone] + image: alpine/git + commands: + - git --version + - git submodule update --init --recursive + - name: pull fedora-hugo pull: always + depends_on: [clone] image: immawanderer/fedora-hugo:linux-amd64 commands: - uname -r @@ -21,12 +30,11 @@ steps: - name: hugo-extended pull: if-not-exists - depends-on: + depends_on: + - submodules - pull fedora-hugo image: immawanderer/fedora-hugo:linux-amd64 commands: - - git submodule init - - git submodule update - hugo version - hugo --gc=true --minify @@ -57,6 +65,14 @@ depends_on: - build steps: + - name: submodules + pull: always + depends_on: [clone] + image: alpine/git + commands: + - git --version + - git submodule update --init --recursive + - name: pull fedora-hugo pull: always depends_on: [clone] @@ -75,13 +91,11 @@ steps: - name: hugo-extended pull: if-not-exists - depends-on: + depends_on: + - submodules - pull fedora-hugo - - pull tmaier/docker-compose image: immawanderer/fedora-hugo:linux-amd64 commands: - - git submodule init - - git submodule update - hugo version - hugo --gc=true --minify @@ -97,6 +111,7 @@ steps: pull: always image: tmaier/docker-compose:latest depends_on: + - pull tmaier/docker-compose - rm-intermediate volumes: - name: s