Skip to content

Commit

Permalink
Update deploy-prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Jun 26, 2024
1 parent a99d3fb commit 79b168d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ jobs:
deploy_dev:
needs: build_push
runs-on: ubuntu-latest
strategy:
matrix:
server: [ SRV_1, SRV_2 ] # List of server names for PROD
steps:
- name: Deploy on PROD server
- name: Deploy on ${{ matrix.server }}}} server
if: github.ref == 'refs/heads/prod'
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.PROD_REMOTE_SERVER_ADDRESS }}
host: ${{ secrets.PROD_REMOTE_SERVER_ADDRESS_${{ matrix.server }}}}
username: ${{ secrets.PROD_SERVER_USERNAME }}
key: ${{ secrets.PROD_REMOTE_SERVER_KEY }}
port: ${{ secrets.PROD_SSH_PORT }}
Expand Down

0 comments on commit 79b168d

Please sign in to comment.