mirror of
https://codeberg.org/lauralani/www-lauka-net.git
synced 2024-11-23 20:50:40 +01:00
update CI
This commit is contained in:
parent
42090f625b
commit
b8939eb0c5
2 changed files with 35 additions and 0 deletions
35
.woodpecker/deploy-netlify.yaml
Normal file
35
.woodpecker/deploy-netlify.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
steps:
|
||||
build:
|
||||
image: node:19
|
||||
when:
|
||||
- event: push
|
||||
branch: [main, staging]
|
||||
commands:
|
||||
- npm install -D @11ty/eleventy
|
||||
- rm -rf public/
|
||||
- npx @11ty/eleventy --input=. --output=public
|
||||
|
||||
deploy-staging:
|
||||
image: node:alpine
|
||||
when:
|
||||
- event: push
|
||||
branch: staging
|
||||
secrets:
|
||||
- NETLIFY_AUTH_TOKEN
|
||||
- NETLIFY_SITE_ID
|
||||
commands:
|
||||
- npm install netlify-cli -g
|
||||
- netlify deploy --alias stage --dir ./public
|
||||
|
||||
|
||||
deploy-production:
|
||||
image: node:alpine
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
secrets:
|
||||
- NETLIFY_AUTH_TOKEN
|
||||
- NETLIFY_SITE_ID
|
||||
commands:
|
||||
- npm install netlify-cli -g
|
||||
- netlify deploy --alias stage --dir ./public
|
Loading…
Reference in a new issue