From 694f580997e39d518140c13a4ccbddb9039dc067 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 13 Jul 2020 15:52:30 +0200 Subject: [PATCH] feat: pull image in a separate step --- .drone.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3435837..ecdd9ea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,9 +4,21 @@ type: docker name: 'build and deploy' steps: -- name: hugo-extended +- name: pull pull: always image: immawanderer/fedora-hugo:latest + commands: + - uname -r + - cat /etc/fedora-release + +- name: hugo-extended + pull: if-not-exists + image: immawanderer/fedora-hugo:latest + when: + status: + - success + depends_on: + - pull commands: - git submodule init - git submodule update