ci: fix rsync deployment
Some checks failed
/ test (push) Failing after 10s

This commit is contained in:
Matthieu Bessat 2024-02-09 18:28:54 +01:00
parent 0daae42f48
commit 9f4331c69a

View file

@ -23,9 +23,12 @@ jobs:
mv hugo /usr/local/bin mv hugo /usr/local/bin
- name: Build - name: Build
run: hugo --minify run: hugo --minify
- name: Create Key File - name: Create key file
run: install -m 600 -D /dev/null ~/.ssh/id_edsa run: install -m 600 -D /dev/null ~/.ssh/id
- name: Populate Key - name: Populate Key
run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id
- name: Upload - name: Upload
run: rsync --archive --stats -e 'ssh -i ~/.ssh/id_edsa -o StrictHostKeyChecking=no' public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox-02/public run: |
rsync --archive --progress \
--rsh='ssh -i ~/.ssh/id -o StrictHostKeyChecking=no' \
public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox-02/public