mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 09:42:09 +00:00
e989ff01c4
Install bins into ~/bin instead and use local npm packages
29 lines
647 B
YAML
29 lines
647 B
YAML
---
|
|
image: alpine/edge
|
|
packages:
|
|
- rsync
|
|
- zopfli
|
|
- git # for Hugo's gitInfo
|
|
- make
|
|
- npm
|
|
- chromium
|
|
sources:
|
|
- https://git.sr.ht/~seirdy/seirdy.one
|
|
secrets:
|
|
- cc1eb90c-b07b-4c46-86d4-58fec41cf0e4
|
|
triggers:
|
|
- action: email
|
|
condition: always
|
|
to: seirdy@seirdy.one
|
|
tasks:
|
|
- deps: |
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
|
rsync deploy@seirdy.one:/home/deploy/binaries.tar.gz .
|
|
mkdir -p ~/bin
|
|
tar x -ozC ~/bin -f binaries.tar.gz
|
|
- build_deploy: |
|
|
cd seirdy.one
|
|
npm i -D
|
|
export PATH=~/bin:$PATH
|
|
make DOMAIN=staging.seirdy.one test-staging
|
|
make clean deploy
|