Skip to content

Commit

Permalink
fix workflow paths
Browse files Browse the repository at this point in the history
Signed-off-by: sallyom <[email protected]>
  • Loading branch information
sallyom committed Mar 28, 2024
1 parent f2318ce commit 820d4fd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,35 @@ jobs:
uses: tj-actions/changed-files@v42
with:
files: |
rag-langchain/**
recipes/natural_language_processing/rag/**
- name: Get changed summarizer files
id: changed-files-summarizer
uses: tj-actions/changed-files@v42
with:
files: |
summarizer-langchain/**
recipes/natural_language_processing/summarizer/**
- name: Get changed code-generation files
id: changed-files-codegen
uses: tj-actions/changed-files@v42
with:
files: |
code-generation/**
recipes/natural_language_processing/code-generation/**
- name: Get changed chatbot files
id: changed-files-chatbot
uses: tj-actions/changed-files@v42
with:
files: |
chatbot-langchain/**
recipes/natural_language_processing/chatbot/**
- name: Get changed chromadb files
id: changed-files-chromadb
uses: tj-actions/changed-files@v42
with:
files: |
rag-langchain/builds/chromadb/**
vector_dbs/chromadb/**
- name: Install qemu dependency
if: steps.changed-files-model-service.outputs.any_changed == 'true' || steps.changed-files-chatbot.outputs.any_changed == 'true' || steps.changed-files-summarizer.outputs.any_changed == 'true' || steps.changed-files-rag.outputs.any_changed == 'true' || steps.changed-files-codegen.outputs.any_changed == 'true'
Expand Down Expand Up @@ -119,9 +119,9 @@ jobs:
image: ${{ env.CHATBOT_IMAGE }}
tags: latest ${{ github.sha }}
platforms: linux/amd64, linux/arm64
context: chatbot-langchain
context: recipes/natural_language_processing/chatbot
containerfiles: |
./chatbot-langchain/builds/Containerfile
recipes/natural_language_processing/chatbot/builds/Containerfile
- name: Push chatbot image
id: push_chatbot
Expand All @@ -143,9 +143,9 @@ jobs:
image: ${{ env.CODEGEN_IMAGE }}
tags: latest ${{ github.sha }}
platforms: linux/amd64, linux/arm64
context: code-generation
context: recipes/natural_language_processing/code-generation
containerfiles: |
./code-generation/builds/Containerfile
./recipes/natural_language_processing/code-generation/builds/Containerfile
- name: Push code-generation image
id: push_codegen
Expand All @@ -167,9 +167,9 @@ jobs:
image: ${{ env.SUMMARIZER_IMAGE }}
tags: latest ${{ github.sha }}
platforms: linux/amd64, linux/arm64
context: summarizer-langchain
context: recipes/natural_language_processing/summarizer
containerfiles: |
./summarizer-langchain/builds/Containerfile
./recipes/natural_language_processing/summarizer/builds/Containerfile
- name: Push summarizer image
id: push_summarizer
Expand All @@ -192,9 +192,9 @@ jobs:
tags: latest ${{ github.sha }}
# TODO: add amd64
platforms: linux/arm64
context: rag-langchain
context: recipes/natural_language_processing/rag
containerfiles: |
./rag-langchain/builds/Containerfile
./recipes/natural_language_processing/rag/builds/Containerfile
- name: Push rag image
id: push_rag
Expand All @@ -217,9 +217,9 @@ jobs:
tags: latest ${{ github.sha }}
# TODO: add amd64
platforms: linux/arm64, linux/amd64
context: rag-langchain/builds/chromadb
context: vector_dbs/chromadb
containerfiles: |
./rag-langchain/builds/chromadb/Containerfile
./vector_dbs/chromadb/Containerfile
- name: Push chromadb image
id: push_chromadb
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ jobs:
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
containerfiles: ./chatbot/builds/Containerfile
context: chatbot
containerfiles: ./recipes/natural_language_processing/chatbot/builds/Containerfile
context: recipes/natural_language_processing/chatbot

- name: Set up Python
uses: actions/[email protected]

- name: Install python dependencies
run: make -f chatbot/Makefile install
working-directory: ./recipes/natural_language_processing/chatbot
run: make install

- name: Run tests
run: make -f chatbot/Makefile test
working-directory: ./recipes/natural_language_processing/chatbot
run: make test

0 comments on commit 820d4fd

Please sign in to comment.