18 lines
534 B
YAML
18 lines
534 B
YAML
pipeline:
|
|
build:
|
|
image: alpine:3
|
|
commands:
|
|
- apk update
|
|
- apk add --no-cache hugo
|
|
- hugo --minify
|
|
|
|
deploy:
|
|
image: alpine:3
|
|
commands:
|
|
- apk update
|
|
- apk add --no-cache rsync openssh-client
|
|
- eval $(ssh-agent)
|
|
- echo "$DEPLOY_KEY" | ssh-add -
|
|
- rsync -e "ssh -p $DEPLOY_PORT -o 'StrictHostKeyChecking=no'" public -az --delete "$DEPLOY_DEST"
|
|
secrets: [ deploy_key, deploy_port, deploy_dest ]
|