parent
fc98ca8e25
commit
346e05a4cd
@ -45,12 +45,21 @@ jobs:
|
||||
ssh-add /home/runner/.ssh/id_deployer
|
||||
|
||||
- name: Deploy to server
|
||||
uses: https://github.com/appleboy/scp-action@master
|
||||
env:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: ./website.tar
|
||||
target: ${{SCP_DEST}}
|
||||
overwrite: true
|
||||
|
||||
- name: Extract archive
|
||||
run: |
|
||||
echo "Dit is een test (waarum runt dit niet??????)"
|
||||
scp -i ~/.ssh/id_deployer ./website.tar ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{SCP_DEST}}
|
||||
# ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm -r ${{WEB_DIR}}/*"
|
||||
# ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "tar -xf ${{SCP_DEST}}/website.tar --directory ${{WEB_DIR}}/"
|
||||
# ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar"
|
||||
#scp -i ~/.ssh/id_deployer ./website.tar ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{SCP_DEST}}
|
||||
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm -r ${{WEB_DIR}}/*"
|
||||
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "tar -xf ${{SCP_DEST}}/website.tar --directory ${{WEB_DIR}}/"
|
||||
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar"
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user