Skip to content

Commit e57493c

Browse files
committed
Added an action to deploy to AWS ElasticBeanstalk env
1 parent 828994d commit e57493c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ jobs:
2222

2323
- name: Run tests in container
2424
run: docker run -e CI=true mmaksi/react-nginx npm run test
25+
26+
- name: Generate deployment package
27+
run: zip -r deploy.zip . -x '*.git*'
28+
29+
- name: Deploy to EB
30+
uses: einaregilsson/beanstalk-deploy@v21
31+
with:
32+
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
33+
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
34+
application_name: frontend
35+
environment_name: frontend-env
36+
existing_bucket_name: elasticbeanstalk-eu-north-1-749180651079
37+
region: eu-north-1
38+
version_label: ${{ github.sha }}
39+
deployment_package: deploy.zip
File renamed without changes.

0 commit comments

Comments
 (0)