ci: update submodules in a separate step
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
also, tweak step dependency graph a little
This commit is contained in:
parent
96d9de7e7f
commit
84c5353208
29
.drone.yml
29
.drone.yml
@ -12,8 +12,17 @@ trigger:
|
|||||||
event: [push, pull_request]
|
event: [push, pull_request]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
pull: always
|
||||||
|
depends_on: [clone]
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git --version
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: pull fedora-hugo
|
- name: pull fedora-hugo
|
||||||
pull: always
|
pull: always
|
||||||
|
depends_on: [clone]
|
||||||
image: immawanderer/fedora-hugo:linux-amd64
|
image: immawanderer/fedora-hugo:linux-amd64
|
||||||
commands:
|
commands:
|
||||||
- uname -r
|
- uname -r
|
||||||
@ -21,12 +30,11 @@ steps:
|
|||||||
|
|
||||||
- name: hugo-extended
|
- name: hugo-extended
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
depends-on:
|
depends_on:
|
||||||
|
- submodules
|
||||||
- pull fedora-hugo
|
- pull fedora-hugo
|
||||||
image: immawanderer/fedora-hugo:linux-amd64
|
image: immawanderer/fedora-hugo:linux-amd64
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
|
||||||
- git submodule update
|
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
@ -57,6 +65,14 @@ depends_on:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
pull: always
|
||||||
|
depends_on: [clone]
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git --version
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: pull fedora-hugo
|
- name: pull fedora-hugo
|
||||||
pull: always
|
pull: always
|
||||||
depends_on: [clone]
|
depends_on: [clone]
|
||||||
@ -75,13 +91,11 @@ steps:
|
|||||||
|
|
||||||
- name: hugo-extended
|
- name: hugo-extended
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
depends-on:
|
depends_on:
|
||||||
|
- submodules
|
||||||
- pull fedora-hugo
|
- pull fedora-hugo
|
||||||
- pull tmaier/docker-compose
|
|
||||||
image: immawanderer/fedora-hugo:linux-amd64
|
image: immawanderer/fedora-hugo:linux-amd64
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
|
||||||
- git submodule update
|
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
@ -97,6 +111,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
image: tmaier/docker-compose:latest
|
image: tmaier/docker-compose:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- pull tmaier/docker-compose
|
||||||
- rm-intermediate
|
- rm-intermediate
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
|
Loading…
Reference in New Issue
Block a user