diff --git a/.woodpecker.yml b/.woodpecker.yml index 36ec77c..3575b50 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 ] \ No newline at end of file + - 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 \ No newline at end of file