Skip to content

Commit

Permalink
deployment to aws elastic beanstalk
Browse files Browse the repository at this point in the history
integrationninjas authored Mar 17, 2024
1 parent 525e986 commit ae4a11a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CICD

on:
push:
branches:
- elastic-beanstalk-ec2

jobs:
build-and-deploy:
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm install
- name: Genrate Deployment Package
run: zip -r nodejs-app-build.zip .
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: 'nodejs-app'
environment_name: 'nodejs-app-env'
version_label: ${{ github.sha }}
region: us-eat-1
deployment_package: nodejs-app-build.zip

0 comments on commit ae4a11a

Please sign in to comment.