ci: include rsync in install step for Hugo deploy
Some checks failed
hugo deploy / build-and-deploy (push) Failing after 35s

This commit is contained in:
2026-01-11 00:54:23 +00:00
parent 8693d62aa0
commit a392ad30c3

View File

@@ -18,7 +18,7 @@ jobs:
- name: Install Hugo - name: Install Hugo
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y wget tar openssh-client git sudo apt-get install -y wget tar openssh-client git rsync
HUGO_VERSION=0.154.1 HUGO_VERSION=0.154.1
ARCH=Linux-64bit ARCH=Linux-64bit
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_${ARCH}.tar.gz -O /tmp/hugo.tar.gz wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_${ARCH}.tar.gz -O /tmp/hugo.tar.gz
@@ -45,5 +45,5 @@ jobs:
- name: Deploy to server - name: Deploy to server
run: | run: |
ssh -o StrictHostKeyChecking=no hugo-deploy@10.20.20.102 "mkdir -p /opt/containers/website/content && rm -rf /opt/containers/website/content/*" ssh -o StrictHostKeyChecking=no hugo-deploy@10.20.20.102 "mkdir -p /opt/containers/website/content"
scp -r public/* hugo-deploy@10.20.20.102:/opt/containers/website/content/ rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" public/ hugo-deploy@10.20.20.102:/opt/containers/website/content/