ci: implement quota check in CI Pipeline to ensure resource availability in supported region for RA #115
Workflow file for this run
This file contains hidden or 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: Build Docker and Optional Push - Researcher | |
| on: | |
| push: | |
| branches: [main, dev, demo] | |
| paths: | |
| - ResearchAssistant/** | |
| pull_request: | |
| branches: [main, dev, demo] | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| paths: | |
| - ResearchAssistant/** | |
| merge_group: | |
| workflow_dispatch: | |
| jobs: | |
| docker-build: | |
| strategy: | |
| matrix: | |
| include: | |
| - app_name: byoaia-app | |
| dockerfile: ResearchAssistant/App/WebApp.Dockerfile | |
| password_secret: DOCKER_PASSWORD_RESEARCHASSISTANT | |
| uses: ./.github/workflows/build-docker.yml | |
| with: | |
| registry: byoaiacontainerreg.azurecr.io | |
| username: byoaiacontainerreg | |
| password_secret: ${{ matrix.password_secret }} | |
| app_name: ${{ matrix.app_name }} | |
| dockerfile: ${{ matrix.dockerfile }} | |
| push: ${{ github.event_name == 'push' && github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }} | |
| secrets: inherit |