Test scp and overwriting existing folder

Signed-off-by: Nick Slowinski <nick@nick-slowinski.de>
Dieser Commit ist enthalten in:
Nick Slowinski 2024-08-05 21:04:22 +02:00
Ursprung 3120c3f7dd
Commit 3818964f72
Signiert von: nickslowinski
GPG-Schlüssel-ID: A28671573AA347CC

Datei anzeigen

@ -30,7 +30,12 @@ jobs:
env: env:
SSH_KEY: ${{ secrets.WEB_SSH_KEY }} SSH_KEY: ${{ secrets.WEB_SSH_KEY }}
- name: Test SSH - name: Test SCP
run: ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key $WEB_SSH_USER@be.nick-slowinski.de uptime run: scp -r -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key ~/.ssh $WEB_SSH_USER@be.nick-slowinski.de:/var/www/nick-slowinski.de/www-tmp
env:
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
- name: Test overwriting
run: ssh -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key $WEB_SSH_USER@be.nick-slowinski.de rm -Rf /var/www/nick-slowinski.de/www-1 && mv /var/www/nick-slowinski.de/www-tmp /var/www/nick-slowinski.de/www-1
env: env:
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }} WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}