site/.woodpecker.yml

17 lines
375 B
YAML
Raw Normal View History

2022-03-29 16:10:52 +02:00
platform: 'linux/amd64'
branch: 'main'
pipeline:
release:
2022-04-02 14:09:07 +02:00
image: 'klakegg/hugo:alpine'
commands:
- hugo
2022-04-02 14:22:04 +02:00
- 'cd public && tar czvf ../public.tar.gz *'
2022-03-29 18:08:16 +02:00
deploy:
image: 'curlimages/curl'
secrets:
2022-04-02 14:09:07 +02:00
- 'api_key'
2022-03-29 18:08:16 +02:00
commands:
2022-04-02 14:29:44 +02:00
- "curl -XPOST --fail -s -H 'Authorization: Bearer $API_KEY' -T public.tar.gz https://rustybever.be/api/deploy"