Skip to content

Commit

Permalink
Merge pull request #393 from Gregory-Pereira/hardcode-repo-in-workflo…
Browse files Browse the repository at this point in the history
…w-job-checks

hardcoding repo for each workflow
  • Loading branch information
Gregory-Pereira authored Apr 30, 2024
2 parents bece6e6 + 03c612e commit ffba23d
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ailab_build_push_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codegen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/model-converter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/model_image_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/summarizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing-framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ffba23d

Please sign in to comment.