This commit is contained in:
parent
181411f40a
commit
6647487bcb
1 changed files with 6 additions and 10 deletions
|
|
@ -12,19 +12,15 @@ steps:
|
|||
- main
|
||||
|
||||
deploy-site:
|
||||
image: alpine:3.19
|
||||
image: curlimages/curl:8.5.0
|
||||
commands:
|
||||
- apk add --no-cache curl tar
|
||||
- cd /woodpecker/src/git.polarolouis.fr/polarolouis/site-perso/public
|
||||
- tar -czf /tmp/site.tar.gz .
|
||||
- tar -czf /tmp/site.tar.gz -C site-perso/public .
|
||||
- |
|
||||
curl -X POST https://pages.polarolouis.fr/api/pages \
|
||||
curl -f -X POST https://pages.polarolouis.fr/api/pages \
|
||||
-F "domain=polarolouis.pages.polarolouis.fr" \
|
||||
-F "file=@/tmp/site.tar.gz"
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
depends_on:
|
||||
- render-site
|
||||
when:
|
||||
branch: main
|
||||
event: push
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue