Skip to content

Commit

Permalink
ci(deploy): move host from secret to env
Browse files Browse the repository at this point in the history
  • Loading branch information
timoknapp committed Sep 10, 2024
1 parent 6f17a7f commit dede9ac
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
branches:
- master

env:
HOST: ${{ vars.HOST }}
PORT: ${{ vars.PORT }}

name: Build Tennis Backend
jobs:
build:
Expand All @@ -39,10 +35,10 @@ jobs:
uses: appleboy/[email protected]
if: github.event_name != 'pull_request'
with:
host: ${{ env.HOST }}
host: ${{ vars.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ env.PORT }}
port: ${{ vars.PORT }}
source: "backend/tennis-tournament-finder-backend"
target: ${{ secrets.DEPLOYMENT_PATH }}
strip_components: 1
Expand All @@ -51,8 +47,8 @@ jobs:
uses: appleboy/ssh-action@master
if: github.event_name != 'pull_request'
with:
host: ${{ env.HOST }}
host: ${{ vars.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ env.PORT }}
port: ${{ vars.PORT }}
script: supervisorctl restart tennis-tournament-finder-backend

0 comments on commit dede9ac

Please sign in to comment.