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:55:09 +01:00
|
|
|
ssh-keyscan -t ed25519 $REMOTE >> $HOME/.ssh/known_hosts
|
2023-02-27 12:09:09 +01:00
|
|
|
cd www-lauka-net/public
|
2023-02-27 12:10:23 +01:00
|
|
|
rsync -avh --delete --chown=webadmin:caddy ./ webadmin@$REMOTE:/webroot/www.lauka.net
|