This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
Improve input filter #18
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
name: Deploy test | |
on: | |
push: | |
branches: | |
- env/test | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run | |
run: | | |
python -m pip install --upgrade pip | |
pip install PyYAML==5.3.1 | |
pip install awsebcli==3.20.9 --upgrade --user | |
export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} | |
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
export AWS_DEFAULT_REGION="us-east-1" | |
eb init --region us-east-1 --platform "arn:aws:elasticbeanstalk:us-east-1::platform/Python 3.8 running on 64bit Amazon Linux 2/3.5.4" streetlives_v2 | |
eb deploy ${{ secrets.ENVIRONMENT_NAME }} --timeout 20 |