Skip to content

Commit

Permalink
Set Up EB Deploy Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kdknigga committed Dec 15, 2023
1 parent 947d3af commit 8070f9f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/eb_deploy_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: EB deploy dev
on:
push:
branches: [dev]
jobs:
deploy:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- uses: actions/checkout@v4
- name: Install Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install EB CLI using pip
run: |
python -m pip install --upgrade pip
pip install awsebcli
- name: Deploy to Elastic Beanstalk
run: |
eb deploy loggingnight-dev-py311-3
24 changes: 24 additions & 0 deletions .github/workflows/eb_deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: EB deploy dev
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- uses: actions/checkout@v4
- name: Install Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install EB CLI using pip
run: |
python -m pip install --upgrade pip
pip install awsebcli
- name: Deploy to Elastic Beanstalk
run: |
eb deploy loggingnight-prod-py311-5

0 comments on commit 8070f9f

Please sign in to comment.