Github - Deploying a Nest.js App to AWS Elastic Beanstalk (Docker Platform) with Github Actions

Create a workflow for staging and production instances

Click on Actions tab within the Github repo and then Press on New workflow

You can skip this (Choose a workflow template) and click the Setup a workflow yourself and start from scratch.

Setup workflow files

production.yml

staging.yml

circle-info

Replace AWS_ENVIRONMENT_NAME with your environment of the elastic beanstalk application. Replace AWS_DEFAULT_REGION with the region where you created your elastic beanstalk application.

Add AWS secrets to Github

Push code to Github then Github Action will deploy your app to aws automatically

Last updated