Skip to content

fix: fix logger issue on AWS #480

fix: fix logger issue on AWS

fix: fix logger issue on AWS #480

Workflow file for this run

on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
- run: poetry install
- name: Lint
run: poetry run python -m black --check .
- name: SonarCloud Analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
cd:
runs-on: ubuntu-latest
needs: [ci]
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development') }}
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: ${{ github.ref == 'refs/heads/main' && 'backend-production' || 'backend-development' }}
environment_name: ${{ github.ref == 'refs/heads/main' && 'Backend-production-env' || 'Backend-development-env' }}
version_label: ${{ github.sha }}
use_existing_version_if_available: true
region: eu-central-1
deployment_package: deploy.zip