extract build stage
continuous-integration/drone/push Build is failing Details

This commit is contained in:
ktyl 2022-09-27 22:13:58 +01:00
parent 2fca2828a2
commit 355c223038
1 changed files with 13 additions and 5 deletions

View File

@ -9,6 +9,18 @@ steps:
- pacman -Sy --noconfirm git >/dev/null - pacman -Sy --noconfirm git >/dev/null
- git submodule update --init --recursive - git submodule update --init --recursive
- name: build
image: archlinux
when:
branch:
- drone
commands:
- pacman -Sy --noconfirm make python python-pip > /dev/null
# build site
- make all
- name: deploy - name: deploy
image: archlinux image: archlinux
environment: environment:
@ -25,8 +37,7 @@ steps:
commands: commands:
# install deps # install deps
- pacman -Sy --noconfirm > /dev/null - pacman -Sy --noconfirm > /dev/null
- pacman -S --noconfirm python python-pip > /dev/null - pacman -S --noconfirm openssh rsync > /dev/null
- pacman -S --noconfirm make git openssh rsync > /dev/null
# configure ssh # configure ssh
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
@ -36,8 +47,5 @@ steps:
- ssh-add - ssh-add
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# build site
- make all
# run operations on remote host # run operations on remote host