Skip to content

fix: Updated azure.yaml file to exclude the 1.23.9 azd version #827

fix: Updated azure.yaml file to exclude the 1.23.9 azd version

fix: Updated azure.yaml file to exclude the 1.23.9 azd version #827

name: Build Docker and Optional Push
permissions:
contents: read
actions: read
id-token: write
on:
push:
branches:
- main
- dev
- demo
- hotfix
paths:
- 'src/backend/**'
- 'src/frontend/**'
- 'docker/**'
- '.github/workflows/build-docker-images.yml'
- '.github/workflows/build-docker.yml'
- 'infra/**'
- 'scripts/**'
- 'azure.yaml'
- '.github/workflows/deploy.yml'
pull_request:
branches:
- main
- dev
- demo
- hotfix
types:
- opened
- ready_for_review
- reopened
- synchronize
paths:
- 'src/backend/**'
- 'src/frontend/**'
- 'docker/**'
- '.github/workflows/build-docker-images.yml'
- '.github/workflows/build-docker.yml'
- 'infra/**'
- 'scripts/**'
- 'azure.yaml'
- '.github/workflows/deploy.yml'
merge_group:
workflow_dispatch:
jobs:
docker-build:
strategy:
matrix:
include:
- app_name: cmsabackend
dockerfile: docker/Backend.Dockerfile
- app_name: cmsafrontend
dockerfile: docker/Frontend.Dockerfile
uses: ./.github/workflows/build-docker.yml
with:
registry: cmsacontainerreg.azurecr.io
app_name: ${{ matrix.app_name }}
dockerfile: ${{ matrix.dockerfile }}
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
secrets: inherit