Skip to content

Commit

Permalink
Update deploy-backend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Amarjha01 authored Aug 24, 2024
1 parent 72027c1 commit 8cb9b6d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy-backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Backend to Docker Hub
name: Deploy Backend to Docker Hub and Elastic Beanstalk

on:
push:
Expand Down Expand Up @@ -42,6 +42,14 @@ jobs:
run: |
sudo pip install awsebcli
- name: Prepare source bundle for Elastic Beanstalk
run: |
mkdir -p eb-deploy
cp backend/Dockerfile eb-deploy/Dockerfile
cp -r backend/* eb-deploy/
cd eb-deploy
zip -r ../app.zip .
- name: Deploy to Elastic Beanstalk
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -50,4 +58,4 @@ jobs:
run: |
eb init -p docker my-backend-app --region $AWS_REGION
eb use my-backend-app-env
eb deploy my-backend-app-env
eb deploy --staged

0 comments on commit 8cb9b6d

Please sign in to comment.