another attempt
Some checks failed
/ deploy (push) Failing after 44s

This commit is contained in:
Mans Ziesel 2024-04-27 19:51:25 +02:00
parent fc98ca8e25
commit 346e05a4cd

View File

@ -45,12 +45,21 @@ jobs:
ssh-add /home/runner/.ssh/id_deployer ssh-add /home/runner/.ssh/id_deployer
- name: Deploy to server - 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: | 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}}
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}} "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}} "tar -xf ${{SCP_DEST}}/website.tar --directory ${{WEB_DIR}}/" ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar"
# ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar"