Skip to content

Commit

Permalink
Pass secrets to SSH auth
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed Apr 11, 2024
1 parent 6d84c53 commit d67bf66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/redeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
IdentityFile ~/.ssh/hubgpt_prod.key
StrictHostKeyChecking no
END
env:
PROD_EC2_USER: ${{ secrets.STAGING_SSH_USER }}
PROD_SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
PROD_EC2_HOST_IP: ${{ secrets.STAGING_SSH_HOST }}
- name: Deploy to Production
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.PROD_EC2_USER }}@${{ secrets.PROD_EC2_HOST_IP }} << 'EOF'
Expand Down

0 comments on commit d67bf66

Please sign in to comment.