Skip to content

Commit

Permalink
👷 Deploy with webhook because ssh fails 80% of time
Browse files Browse the repository at this point in the history
  • Loading branch information
arthaud-proust committed Dec 23, 2024
1 parent 436fbbe commit 61777bb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Run make deploy via ssh
uses: appleboy/ssh-action@v1.0.3
- name: Deploy
uses: fjogeleit/http-request-action@v1
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
script: ${{ secrets.DEPLOY_SSH_SCRIPT }}
method: 'POST'
url: ${{ secrets.DEPLOY_URL }}
bearerToken: ${{ secrets.DEPLOY_TOKEN }}
maskResponse: true
retry: 3
retryWait: 5000

0 comments on commit 61777bb

Please sign in to comment.