site/.woodpecker.yml

17 lines
375 B
YAML

platform: 'linux/amd64'
branch: 'main'
pipeline:
release:
image: 'klakegg/hugo:alpine'
commands:
- hugo
- 'cd public && tar czvf ../public.tar.gz *'
deploy:
image: 'curlimages/curl'
secrets:
- 'api_key'
commands:
- "curl -XPOST --fail -s -H 'Authorization: Bearer $API_KEY' -T public.tar.gz https://rustybever.be/api/deploy"