This commit is contained in:
parent
3b7eed81e4
commit
a578978a22
1 changed files with 8 additions and 7 deletions
|
@ -1,23 +1,24 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: debian
|
||||
image: archlinux
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install hugo
|
||||
- pacman -S hugo
|
||||
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
||||
|
||||
check-version:
|
||||
image: debian
|
||||
image: archlinux
|
||||
commands:
|
||||
- echo "Checking Hugo version."
|
||||
- hugo version
|
||||
|
||||
upload:
|
||||
image: debian
|
||||
image: archlinux
|
||||
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 ]
|
||||
- rsync -rv -e "ssh -p $SSH-PORT" /woodpecker/build/ woodpecker@$SSH-HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
||||
secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ]
|
||||
|
||||
branches: main
|
Loading…
Reference in a new issue