-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f900c71
commit 6fbec53
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
name: Deploy to AWS Elastic Beanstalk | ||
on: | ||
push: | ||
branches: | ||
- main # Set to your default branch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' # Set to your Python version | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
# Add steps for testing your application if needed | ||
# - name: Test | ||
# run: | | ||
- name: Zip the repository | ||
run: zip -r deployment-package.zip . -x "*.git*" | ||
|
||
- name: Deploy to AWS Elastic Beanstalk | ||
uses: einaregilsson/beanstalk-deploy@v18 | ||
with: | ||
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
application_name: "Concentration of Banking" | ||
environment_name: "ConcentrationofBanking-env" | ||
region: us-east-1 | ||
version_label: ${{ github.sha }} | ||
deployment_package: deployment-package.zip | ||
|
||
|