23 lines
No EOL
646 B
YAML
23 lines
No EOL
646 B
YAML
pipeline:
|
|
build:
|
|
image: debian
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install hugo
|
|
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
|
|
|
check-version:
|
|
image: debian
|
|
commands:
|
|
- echo "Checking Hugo version."
|
|
- hugo version
|
|
|
|
upload:
|
|
image: debian
|
|
commands:
|
|
- eval `ssh-agent -s`
|
|
- echo "$SSH-KEY" | ssh-add -
|
|
- mkdir -p ~/.ssh
|
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
|
- rsync -rv -e "ssh -p $SSH-PORT" /woodpecker/build/ $SSH-HOST:$SSH_DIR --checksum
|
|
secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ] |