Switched ci to new deploy system

pull/4/head
Jef Roosens 2022-04-02 14:09:07 +02:00
parent 4d8b481daa
commit c0cb6f9e0b
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 6 additions and 9 deletions

View File

@ -3,17 +3,14 @@ branch: 'main'
pipeline:
release:
image: 'plugins/docker'
settings:
repo: 'chewingbever/site'
tag: 'latest'
secrets:
- 'docker_username'
- 'docker_password'
image: 'klakegg/hugo:alpine'
commands:
- hugo
- cd public && tar czvf ../public.tar.gz *
deploy:
image: 'curlimages/curl'
secrets:
- 'webhook'
- 'api_key'
commands:
- curl -XPOST --fail -s "$WEBHOOK"
- curl -XPOST --fail -s -H 'Authorization: Bearer $API_KEY' https://rustybever.be/api/deploy