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: pipeline:
release: release:
image: 'plugins/docker' image: 'klakegg/hugo:alpine'
settings: commands:
repo: 'chewingbever/site' - hugo
tag: 'latest' - cd public && tar czvf ../public.tar.gz *
secrets:
- 'docker_username'
- 'docker_password'
deploy: deploy:
image: 'curlimages/curl' image: 'curlimages/curl'
secrets: secrets:
- 'webhook' - 'api_key'
commands: commands:
- curl -XPOST --fail -s "$WEBHOOK" - curl -XPOST --fail -s -H 'Authorization: Bearer $API_KEY' https://rustybever.be/api/deploy