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 --user \"$USER:$APIKEY\" --header \"Content-Type: multipart/form-data\" --form \"STATIC_PAGE=@$(pwd)/archive.tar.gz\""
secrets: [ apikey, url, user ]