Skip to content

Commit

Permalink
hardcoding repo for each workflow
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed Apr 29, 2024
1 parent 2b94847 commit e19971b
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
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-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
release-images:
runs-on: ubuntu-latest
needs: integration-tests
if: success()
if: "success() && github.repository == 'containers/ai-lab-recipes'"
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit e19971b

Please sign in to comment.