diff --git a/.github/workflows/bicep-audit.yml b/.github/workflows/bicep-audit.yml index eb7f66d98..e8583abf7 100644 --- a/.github/workflows/bicep-audit.yml +++ b/.github/workflows/bicep-audit.yml @@ -1,12 +1,12 @@ name: Validate bicep templates on: push: - branches: + branches: - main paths: - "**/*.bicep" pull_request: - branches: + branches: - main paths: - "**/*.bicep" @@ -30,6 +30,6 @@ jobs: - name: Upload alerts to Security tab uses: github/codeql-action/upload-sarif@v3 - if: github.repository_owner == 'Azure-Samples' + if: github.repository_owner == 'Roopan-Microsoft' with: sarif_file: ${{ steps.msdo.outputs.sarifFile }} diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index dd6bf3c22..76c36ff8b 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -28,8 +28,8 @@ jobs: dockerfile: docker/Frontend.Dockerfile uses: ./.github/workflows/build-docker.yml with: - registry: fruoccopublic.azurecr.io - username: fruoccopublic + registry: pkcwydcontainerreg.azurecr.io + username: pkcwydcontainerreg app_name: ${{ matrix.app_name }} dockerfile: ${{ matrix.dockerfile }} push: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main' }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6260f5ccb..1ae2010b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,8 +38,8 @@ jobs: AZURE_ENV_NAME: ${{ github.run_id }} AZURE_LOCATION: ${{ vars.AZURE_LOCATION }} with: - imageName: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator - cacheFrom: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator + imageName: ghcr.io/roopan-microsoft/psl-cwyd-main + cacheFrom: ghcr.io/roopan-microsoft/psl-cwyd-main runCmd: make ci && make deploy refFilterForPush: refs/heads/main env: | @@ -58,7 +58,7 @@ jobs: AZURE_LOCATION: ${{ vars.AZURE_LOCATION }} with: push: never - imageName: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator + imageName: ghcr.io/roopan-microsoft/psl-cwyd-main runCmd: make destroy env: | AZURE_CLIENT_ID @@ -67,3 +67,21 @@ jobs: AZURE_SUBSCRIPTION_ID AZURE_ENV_NAME AZURE_LOCATION + + - name: Send Notification on Failure + if: failure() + run: | + RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + + # Construct the email body + EMAIL_BODY=$(cat <Dear Team,

We would like to inform you that the CWYD Automation process has encountered an issue and has failed to complete successfully.

Build URL: ${RUN_URL}
${OUTPUT}

Please investigate the matter at your earliest convenience.

Best regards,
Your Automation Team

" + } + EOF + ) + + # Send the notification + curl -X POST "${{ secrets.LOGIC_APP_URL }}" \ + -H "Content-Type: application/json" \ + -d "$EMAIL_BODY" || echo "Failed to send notification"