Test scp and overwriting existing folder
Signed-off-by: Nick Slowinski <nick@nick-slowinski.de>
Dieser Commit ist enthalten in:
Ursprung
3120c3f7dd
Commit
3818964f72
1 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
|
@ -30,7 +30,12 @@ jobs:
|
|||
env:
|
||||
SSH_KEY: ${{ secrets.WEB_SSH_KEY }}
|
||||
|
||||
- name: Test SSH
|
||||
run: ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key $WEB_SSH_USER@be.nick-slowinski.de uptime
|
||||
- name: Test SCP
|
||||
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:
|
||||
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
|
Laden …
In neuem Issue referenzieren