.forgejo/workflows/deploy.yml aktualisiert
Some checks failed
Deploy Scoresniper via SCP / deploy (push) Has been cancelled
Some checks failed
Deploy Scoresniper via SCP / deploy (push) Has been cancelled
This commit is contained in:
parent
12e9c63043
commit
f7a98df110
1 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Deploy Scoresniper via SFTP
|
name: Deploy Scoresniper via SCP
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,20 +7,17 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install lftp
|
- name: Install scp and sshpass
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y lftp
|
apt-get install -y openssh-client sshpass
|
||||||
|
|
||||||
- name: Upload project files via SFTP
|
- name: Upload project files via SCP
|
||||||
run: |
|
run: |
|
||||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
sshpass -p "${{ secrets.SFTP_PASS }}" scp -o StrictHostKeyChecking=no -r ./ ${{ secrets.SFTP_USER }}@potzplitz.de:/var/www/html/scoresniper
|
||||||
mirror -R --delete ./ /var/www/html/scoresniper
|
|
||||||
quit
|
|
||||||
EOF
|
|
||||||
|
|
Loading…
Reference in a new issue