2023-02-25 20:14:18 +01:00
|
|
|
image: debian/bullseye
|
2023-02-25 19:58:56 +01:00
|
|
|
packages:
|
|
|
|
- nodejs
|
2023-02-25 20:42:02 +01:00
|
|
|
- libsecret-1-0
|
|
|
|
repositories:
|
|
|
|
nodejs: https://deb.nodesource.com/node_18.x bullseye main 1655A0AB68576280
|
2023-02-25 19:58:56 +01:00
|
|
|
secrets:
|
2023-02-25 20:03:15 +01:00
|
|
|
- 7db2a845-55f9-43da-8319-c9c796cbd8a5
|
2023-02-25 19:58:56 +01:00
|
|
|
tasks:
|
|
|
|
- prepare: |
|
2023-02-25 20:42:02 +01:00
|
|
|
npm install -D @11ty/eleventy @azure/static-web-apps-cli
|
2023-02-25 19:58:56 +01:00
|
|
|
set +x && export SWA_CLI_DEPLOYMENT_TOKEN=`cat ~/deploy_token.txt` && set -x
|
|
|
|
- build: |
|
2023-02-25 20:06:00 +01:00
|
|
|
npx @11ty/eleventy --input=./www-lauka-net --output=public
|
2023-02-25 19:58:56 +01:00
|
|
|
- deploy: |
|
2023-02-25 20:42:02 +01:00
|
|
|
npx @azure/static-web-apps-cli deploy --no-use-keychain --deployment-token --app-location ./public --env Production
|