Switched ci to new deploy system
parent
4d8b481daa
commit
c0cb6f9e0b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue