14 lines
402 B
YAML
14 lines
402 B
YAML
workspace:
|
|
base: /hugo
|
|
path: services-panel
|
|
|
|
pipeline:
|
|
build:
|
|
image: klakegg/hugo:ext-alpine-ci
|
|
commands:
|
|
- apk add curl
|
|
- hugo
|
|
- tar -czf archive.tar.gz -C ./public/ .
|
|
- "curl --request POST --url ${url} --header 'Content-Type: multipart/form-data' --header 'Static-Hoster-Key: ${api_key}' --form STATIC_PAGE=@$(pwd)/archive.tar.gz"
|
|
secrets: [ api_key, url ]
|