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:
|
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 }}
|
Laden …
In neuem Issue referenzieren