2022-03-29 16:10:52 +02:00
|
|
|
platform: 'linux/amd64'
|
2022-04-02 15:38:08 +02:00
|
|
|
branches: 'main'
|
2022-03-29 16:10:52 +02:00
|
|
|
|
|
|
|
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:31:28 +02:00
|
|
|
- 'curl -XPOST --fail -s -H "Authorization: Bearer $API_KEY" -T public.tar.gz https://rustybever.be/api/deploy'
|