www-lauka-net-11ty/.builds/deploy.yml

22 lines
610 B
YAML
Raw Normal View History

2023-02-25 20:14:18 +01:00
image: debian/bullseye
2023-02-25 19:58:56 +01:00
packages:
- nodejs
2023-02-27 11:51:52 +01:00
- rsync
2023-02-25 20:42:02 +01:00
repositories:
nodejs: https://deb.nodesource.com/node_18.x bullseye main 1655A0AB68576280
2023-02-27 11:55:09 +01:00
environment:
REMOTE: web01vp.cloud.lauka.net
2023-02-25 19:58:56 +01:00
secrets:
2023-02-27 11:49:47 +01:00
- 54755283-43f7-44a6-97fb-70db08184ff1
2023-02-25 19:58:56 +01:00
tasks:
- prepare: |
2023-02-27 11:49:47 +01:00
cd www-lauka-net
2023-02-27 11:51:52 +01:00
npm install -D @11ty/eleventy
2023-02-25 19:58:56 +01:00
- build: |
2023-02-27 11:49:47 +01:00
cd www-lauka-net
npx @11ty/eleventy --input=./ --output=public
2023-02-25 19:58:56 +01:00
- deploy: |
2023-02-27 11:49:47 +01:00
cd www-lauka-net
2023-02-27 11:55:09 +01:00
ssh-keyscan -t ed25519 $REMOTE >> $HOME/.ssh/known_hosts
rsync -avh --delete --chown=webadmin:caddy ./public webadmin@$REMOTE:/webroot/www.lauka.net