Skip to content

Commit

Permalink
inline
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
codefromthecrypt committed Feb 20, 2025
1 parent 0fae574 commit ad26fb1
Showing 1 changed file with 7 additions and 34 deletions.
41 changes: 7 additions & 34 deletions .github/workflows/docker-chatbot-rag-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ jobs:
outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.event_name == 'push' && 'true' || 'false' }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: save image
- name: start elasticsearch
if: github.event_name == 'pull_request'
run: docker save ${{ env.IMAGE }} -o image.tar
- name: upload image artifact
run: docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
- name: test image
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: image-${{ matrix.runner }}
path: image.tar
working-directory: example-apps/chatbot-rag-app
run: | # This tests ELSER is working, which doesn't require an LLM.
cp env.example .env
docker compose run --rm -T create-index
- name: export digest
if: github.event_name == 'push'
run: |
Expand All @@ -75,33 +75,6 @@ jobs:
if-no-files-found: error
retention-days: 1

# This tests the chatbot-rag-app image by running the create-index command.
# This command only relies on Elasticsearch, and verifies ELSER is working.
test-image:
strategy:
matrix:
runner:
- ubuntu-24.04
- ubuntu-24.04-arm
needs: build-image
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: download image artifact
uses: actions/download-artifact@v4
with:
name: image-${{ matrix.runner }}
- name: load image
run: docker load -i image.tar
- name: start elasticsearch
run: docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
- name: test image
working-directory: example-apps/chatbot-rag-app
run: |
cp env.example .env
docker compose run --rm -T create-index
push-manifest:
runs-on: ubuntu-24.04
needs: build-image
Expand Down

0 comments on commit ad26fb1

Please sign in to comment.