Skip to content

fix: Psl container fix #2897

fix: Psl container fix

fix: Psl container fix #2897

name: Build Docker Images
on:
workflow_run:
workflows: [Tests]
types: [completed]
branches: [main, dev, demo]
pull_request:
branches: [main, dev, demo]
types:
- opened
- ready_for_review
- reopened
- synchronize
merge_group:
jobs:
docker-build:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
include:
- app_name: rag-adminwebapp
dockerfile: docker/Admin.Dockerfile
- app_name: rag-backend
dockerfile: docker/Backend.Dockerfile
- app_name: rag-webapp
dockerfile: docker/Frontend.Dockerfile
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: Build Docker Image
uses: ./.github/workflows/build-docker.yml
with:
registry: ${{ github.event.workflow_run.head_branch == 'main' && 'fruoccopublic.azurecr.io' || 'cwydcontainerreg.azurecr.io'}}
username: ${{ github.event.workflow_run.head_branch == 'main' && 'fruoccopublic' || 'cwydcontainerreg'}}
app_name: ${{ matrix.app_name }}
dockerfile: ${{ matrix.dockerfile }}
branch: ${{ github.event.workflow_run.head_branch }}
push: ${{ github.event_name == 'workflow_run' && (github.event.workflow_run.head_branch == 'main' || github.event.workflow_run.head_branch == 'dev' || github.event.workflow_run.head_branch == 'demo') }}
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DEV_DOCKER_PASSWORD: ${{ secrets.DEV_DOCKER_PASSWORD }}