diff --git a/.drone.yml b/.drone.yml index b319df1..f61419e 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 python python-pip > /dev/null + + # build site + - make all + - name: deploy image: archlinux environment: @@ -25,7 +37,6 @@ 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 # configure ssh @@ -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