diff --git a/{{cookiecutter.project_slug}}/.github/workflows/deploy_to_aws.yml b/{{cookiecutter.project_slug}}/.github/workflows/deploy_to_aws.yml new file mode 100644 index 0000000..40a48a3 --- /dev/null +++ b/{{cookiecutter.project_slug}}/.github/workflows/deploy_to_aws.yml @@ -0,0 +1,24 @@ + +name: Deploy to AWS Elastic Beanstalk + +on: + push: + branches: + - main + workflow_dispatch: + +env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: ${{ secrets.AWS_REGION }} + AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # AWS CLI is pre-installed on GitHub Actions + - name: Deploy to Azure containerapps + run: ./scripts/deploy_to_ebs.sh