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