Skip to content

Commit

Permalink
update remote host
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 13, 2024
1 parent 3325c4a commit 5e20038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/deploy/backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
aws_ec2_private_key:
description: "AWS EC2 Private Key"
required: true
aws_ec2_remote_host:
description: "AWS EC2 Remote Host"
required: true
db_host:
description: "Database Host"
required: true
Expand Down Expand Up @@ -62,7 +65,7 @@ runs:
- name: Deploy to EC2 instance
uses: easingthemes/[email protected]
with:
REMOTE_HOST: 'ec2-13-41-72-100.eu-west-2.compute.amazonaws.com'
REMOTE_HOST: ${{ inputs.aws_ec2_remote_host }}
REMOTE_USER: 'ec2-user'
SSH_PRIVATE_KEY: ${{ inputs.aws_ec2_private_key }}
SOURCE: 'go/bin/'
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ vars.AWS_REGION }}
aws_ec2_private_key: ${{ secrets.AWS_EC2_PRIVATE_KEY }}
aws_ec2_remote_host: ${{ vars.AWS_EC2_REMOTE_HOST }}
db_host: ${{ vars.DB_HOST }}
db_port: ${{ vars.DB_PORT }}
db_user: ${{ vars.DB_USER }}
Expand Down

0 comments on commit 5e20038

Please sign in to comment.