Skip to content

Commit

Permalink
ci: change scp action
Browse files Browse the repository at this point in the history
  • Loading branch information
timoknapp committed Dec 30, 2024
1 parent 73edf03 commit e360a8a
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,28 @@ jobs:
pwd
ls -la
# - name: Deploy
# uses: appleboy/[email protected]
# if: github.event_name != 'pull_request'
# with:
# host: ${{ vars.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# port: ${{ vars.PORT }}
# source: "backend/tennis-tournament-finder-backend"
# target: ${{ secrets.DEPLOYMENT_PATH }}
# strip_components: 1
# timeout: 120s

- name: Deploy
uses: appleboy/scp-action@v0.1.3
uses: garygrossgarten/github-action-scp@release
if: github.event_name != 'pull_request'
with:
host: ${{ vars.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ vars.PORT }}
source: "backend/tennis-tournament-finder-backend"
target: ${{ secrets.DEPLOYMENT_PATH }}
strip_components: 1
timeout: 120s
privateKey: ${{ secrets.SSH_KEY }}
local: "backend/tennis-tournament-finder-backend"
remote: ${{ secrets.DEPLOYMENT_PATH }}

- name: Restart Service
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit e360a8a

Please sign in to comment.