extract build stage
This commit is contained in:
parent
2fca2828a2
commit
1a4fbc44f5
22
.drone.yml
22
.drone.yml
|
@ -9,6 +9,22 @@ 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
|
||||||
|
environment:
|
||||||
|
PYTHON_ENV: python python-pipenv python-setuptools
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- drone
|
||||||
|
|
||||||
|
commands:
|
||||||
|
# set up python
|
||||||
|
- pacman -Sy --noconfirm make $PYTHON_ENV > /dev/null
|
||||||
|
- pipenv install
|
||||||
|
|
||||||
|
# build site
|
||||||
|
- make all
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: archlinux
|
image: archlinux
|
||||||
environment:
|
environment:
|
||||||
|
@ -25,8 +41,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 +51,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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue