Skip to content

Commit

Permalink
Configure AWS credentials and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gzurowski committed May 22, 2024
1 parent e99ff38 commit 5e10517
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,28 @@ jobs:
with:
name: deploy
path: target/deploy.zip

- name: Configure AWS credentials
id: aws_credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.NEW_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.NEW_AWS_SECRET_ACCESS_KEY }}
role-to-assume: arn:aws:iam::905418417735:role/researchhub/staging-assume-beanstalk-deploy
role-session-name: github-actions-beanstalk-deploy
role-skip-session-tagging: true
aws-region: us-east-1
output-credentials: true

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ steps.aws_credentials.outputs.aws-access-key-id }}
aws_secret_key: ${{ steps.aws_credentials.outputs.aws-secret-access-key }}
application_name: staging-beanstalk-backend
environment_name: staging-beanstalk-backend
version_label: "${GITHUB_SHA}"
use_existing_version_if_available: true
region: us-east-1
deployment_package: target/deploy.zip
wait_for_environment_recovery: 120

0 comments on commit 5e10517

Please sign in to comment.