From e18b0171ebff4ccc2d503137bb5a03928e20a21e Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 27 Sep 2022 22:13:58 +0100 Subject: [PATCH] extract build stage --- .drone.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index b319df1..f9a0529 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,18 @@ steps: - pacman -Sy --noconfirm git >/dev/null - git submodule update --init --recursive +- name: build + image: archlinux + when: + branch: + - drone + + commands: + - pacman -Sy --noconfirm make python python-pipenv > /dev/null + + # build site + - make all + - name: deploy image: archlinux environment: @@ -25,8 +37,7 @@ steps: commands: # install deps - pacman -Sy --noconfirm > /dev/null - - pacman -S --noconfirm python python-pip > /dev/null - - pacman -S --noconfirm make git openssh rsync > /dev/null + - pacman -S --noconfirm openssh rsync > /dev/null # configure ssh - eval $(ssh-agent -s) @@ -36,8 +47,5 @@ steps: - ssh-add - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - # build site - - make all - # run operations on remote host