workspace:
base: /hugo
path: services-panel
pipeline:
build:
image: klakegg/hugo:ext-debian-ci
commands:
- apt update && apt install curl -y
- hugo
- tar -czf archive.tar.gz -C ./public/ .
- "curl --request POST --url $URL --header \"Content-Type: multipart/form-data\" --header \"Static-Hoster-Key: $APIKEY\" --form STATIC_PAGE=@$(pwd)/archive.tar.gz"
secrets: [ apikey, url ]