diff --git a/.github/workflows/ailab_build_push_manual.yaml b/.github/workflows/ailab_build_push_manual.yaml index 688f46e44..b0e03264c 100644 --- a/.github/workflows/ailab_build_push_manual.yaml +++ b/.github/workflows/ailab_build_push_manual.yaml @@ -16,6 +16,7 @@ env: jobs: build-and-push-llamacpp-python-cuda-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -54,6 +55,7 @@ jobs: tags: ${{ steps.build_llamacpp_python_cuda.outputs.tags }} build-and-push-llamacpp-python-vulkan-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -98,6 +100,7 @@ jobs: tags: ${{ steps.build_llamacpp_python_vulkan.outputs.tags }} build-and-push-llamacpp-python-base-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -141,6 +144,7 @@ jobs: tags: ${{ steps.build_llamacpp_python_base.outputs.tags }} build-and-push-rag-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -184,6 +188,7 @@ jobs: tags: ${{ steps.build_rag.outputs.tags }} build-and-push-chromadb-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -223,6 +228,7 @@ jobs: tags: ${{ steps.build_chromadb.outputs.tags }} build-and-push-codegen-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -263,6 +269,7 @@ jobs: tags: ${{ steps.build_codegen_image.outputs.tags }} build-and-push-chatbot-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read @@ -303,6 +310,7 @@ jobs: tags: ${{ steps.build_chatbot_image.outputs.tags }} build-and-push-summarizer-image: + if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/chatbot.yaml b/.github/workflows/chatbot.yaml index 5b1af83b4..71041f4a5 100644 --- a/.github/workflows/chatbot.yaml +++ b/.github/workflows/chatbot.yaml @@ -24,7 +24,7 @@ env: jobs: build-and-push-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/codegen.yaml b/.github/workflows/codegen.yaml index a469e2225..67f8f9e28 100644 --- a/.github/workflows/codegen.yaml +++ b/.github/workflows/codegen.yaml @@ -24,7 +24,7 @@ env: jobs: build-and-push-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/model-converter.yaml b/.github/workflows/model-converter.yaml index bfad8bbf4..c01fc09c0 100644 --- a/.github/workflows/model-converter.yaml +++ b/.github/workflows/model-converter.yaml @@ -24,7 +24,7 @@ env: jobs: build-and-push-model-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" strategy: matrix: include: diff --git a/.github/workflows/model_image_build_push.yaml b/.github/workflows/model_image_build_push.yaml index 09c0a114a..53441f7a8 100644 --- a/.github/workflows/model_image_build_push.yaml +++ b/.github/workflows/model_image_build_push.yaml @@ -23,7 +23,7 @@ env: jobs: build-and-push-model-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" strategy: matrix: include: diff --git a/.github/workflows/model_servers.yaml b/.github/workflows/model_servers.yaml index a3173b8fb..7f432ab98 100644 --- a/.github/workflows/model_servers.yaml +++ b/.github/workflows/model_servers.yaml @@ -22,7 +22,7 @@ env: jobs: build-and-push-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" strategy: matrix: include: diff --git a/.github/workflows/rag.yaml b/.github/workflows/rag.yaml index 9a842e222..7227b3c64 100644 --- a/.github/workflows/rag.yaml +++ b/.github/workflows/rag.yaml @@ -24,7 +24,7 @@ env: jobs: build-and-push-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/summarizer.yaml b/.github/workflows/summarizer.yaml index 588b942ea..01315166a 100644 --- a/.github/workflows/summarizer.yaml +++ b/.github/workflows/summarizer.yaml @@ -24,7 +24,7 @@ env: jobs: build-and-push-image: - if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests')" + if: "!contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/testing-framework.yaml b/.github/workflows/testing-framework.yaml index 49b209c2c..6ea85fa49 100644 --- a/.github/workflows/testing-framework.yaml +++ b/.github/workflows/testing-framework.yaml @@ -27,7 +27,7 @@ concurrency: jobs: integration-tests: - if: github.repository == 'containers/ai-lab-recipes' + if: "github.repository == 'containers/ai-lab-recipes' && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 strategy: fail-fast: false @@ -131,9 +131,9 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} release-images: + if: "success() && github.repository == 'containers/ai-lab-recipes'" runs-on: ubuntu-22.04 needs: integration-tests - if: success() strategy: fail-fast: false matrix: