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 85a5507 commit 72027c1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.11.1'

- name: Build Docker image
run: |
docker build -t my-backend-app -f backend/Dockerfile backend
Expand All @@ -27,11 +32,11 @@ jobs:
- name: Tag Docker image
run: |
docker tag my-backend-app:latest $DOCKER_HUB_USERNAME/electramart:latest
docker tag my-backend-app:latest amarjha01/electramart:latest
- name: Push Docker image to Docker Hub
run: |
docker push $DOCKER_HUB_USERNAME/electramart:latest
docker push amarjha01/electramart:latest
- name: Install AWS Elastic Beanstalk CLI
run: |
Expand All @@ -45,4 +50,4 @@ jobs:
run: |
eb init -p docker my-backend-app --region $AWS_REGION
eb use my-backend-app-env
eb deploy
eb deploy my-backend-app-env

0 comments on commit 72027c1

Please sign in to comment.