Merge pull request #37 from PerfectThymeTech/marvinbuss/update_backen… #163
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: Web App Deployment | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.py" | |
- "code/backend/**" | |
- "tests/**" | |
- "requirements.txt" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.py" | |
- "code/backend/**" | |
- "tests/**" | |
- "requirements.txt" | |
jobs: | |
webapp_test: | |
uses: ./.github/workflows/_webappTestTemplate.yml | |
name: "Web App Test" | |
with: | |
python_version: "3.11" | |
webapp_directory: "./code/backend" | |
webapp_dev: | |
uses: ./.github/workflows/_webappDeployTemplate.yml | |
name: "Web App - Dev" | |
needs: [webapp_test] | |
with: | |
environment: "dev" | |
python_version: "3.11" | |
webapp_directory: "./code/backend" | |
webapp_name: "assis-dev-app001" | |
tenant_id: "3556be79-2979-4b19-a1af-4dd4e6d9ed7e" | |
subscription_id: "8f171ff9-2b5b-4f0f-aed5-7fa360a1d094" | |
secrets: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} |