This commit is contained in:
parent
0f5001e7cf
commit
c1fbd836a3
1 changed files with 20 additions and 4 deletions
|
@ -1,7 +1,23 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: alpine
|
||||
image: debian
|
||||
commands:
|
||||
- apk update
|
||||
- apk add hugo
|
||||
- hugo --destination /var/www/vrifox.cc/ --minify --cleanDestinationDir
|
||||
- apt update
|
||||
- apt 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 ]
|
Loading…
Reference in a new issue