CI: Add check for conflict image build definition #1987
Workflow file for this run
This file contains 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
# Copyright (C) 2024 Intel Corporation | |
# SPDX-License-Identifier: Apache-2.0 | |
name: E2E test with docker compose | |
on: | |
pull_request_target: | |
branches: ["main", "*rc"] | |
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped | |
paths: | |
- "**/Dockerfile**" | |
- "**.py" | |
- "**/docker_compose/**" | |
- "**/docker_image_build/**" | |
- "**/tests/test_compose**" | |
- "**/ui/**" | |
- "!**.md" | |
- "!**.txt" | |
- .github/workflows/pr-docker-compose-e2e.yml | |
# If there is a new commit, the previous jobs will be canceled | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
get-test-matrix: | |
if: ${{ !github.event.pull_request.draft }} | |
uses: ./.github/workflows/_get-test-matrix.yml | |
with: | |
diff_excluded_files: '.github|*.md|*.txt|kubernetes|manifest|gmc|assets|benchmark' | |
example-test: | |
needs: [get-test-matrix] | |
strategy: | |
matrix: ${{ fromJSON(needs.get-test-matrix.outputs.run_matrix) }} | |
fail-fast: false | |
if: ${{ !github.event.pull_request.draft }} | |
uses: ./.github/workflows/_run-docker-compose.yml | |
with: | |
registry: "opea" | |
tag: "ci" | |
example: ${{ matrix.example }} | |
hardware: ${{ matrix.hardware }} | |
diff_excluded_files: '.github|*.md|*.txt|kubernetes|manifest|gmc|assets|benchmark' | |
secrets: inherit |