Skip to content
name: Build ClientAdvisor Docker Images
on:
push:
branches: [main, dev, demo]
paths:
- ClientAdvisor/**
pull_request:
branches: [main, dev, demo]
types:
- opened
- ready_for_review
- reopened
- synchronize
paths:
- ClientAdvisor/**
merge_group:
jobs:
docker-build:
strategy:
matrix:
include:
- app_name: byc-wa-app
dockerfile: ClientAdvisor/App/WebApp.Dockerfile
password_secret: DOCKER_PASSWORD
- app_name: byc-wa-fn
dockerfile: ClientAdvisor/AzureFunction/Dockerfile
password_secret: DOCKER_PASSWORD
uses: ./.github/workflows/build-docker.yml
with:
registry: bycwacontainerregap.azurecr.io
username: bycwacontainerregap
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