@@ -51,15 +51,15 @@ jobs:
5151 outputs : type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.event_name == 'push' && 'true' || 'false' }}
5252 cache-from : type=gha
5353 cache-to : type=gha,mode=max
54- - name : save image
54+ - name : start elasticsearch
5555 if : github.event_name == 'pull_request'
56- run : docker save ${{ env.IMAGE }} -o image.tar
57- - name : upload image artifact
56+ run : docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
57+ - name : test image
5858 if : github.event_name == 'pull_request'
59- uses : actions/upload-artifact@v4
60- with :
61- name : image-${{ matrix.runner }}
62- path : image.tar
59+ working-directory : example-apps/chatbot-rag-app
60+ run : | # This tests ELSER is working, which doesn't require an LLM.
61+ cp env.example .env
62+ docker compose run --rm -T create-index
6363 - name : export digest
6464 if : github.event_name == 'push'
6565 run : |
7575 if-no-files-found : error
7676 retention-days : 1
7777
78- # This tests the chatbot-rag-app image by running the create-index command.
79- # This command only relies on Elasticsearch, and verifies ELSER is working.
80- test-image :
81- strategy :
82- matrix :
83- runner :
84- - ubuntu-24.04
85- - ubuntu-24.04-arm
86- needs : build-image
87- if : github.event_name == 'pull_request'
88- runs-on : ubuntu-latest
89- steps :
90- - uses : actions/checkout@v4
91- - name : download image artifact
92- uses : actions/download-artifact@v4
93- with :
94- name : image-${{ matrix.runner }}
95- - name : load image
96- run : docker load -i image.tar
97- - name : start elasticsearch
98- run : docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
99- - name : test image
100- working-directory : example-apps/chatbot-rag-app
101- run : |
102- cp env.example .env
103- docker compose run --rm -T create-index
104-
10578 push-manifest :
10679 runs-on : ubuntu-24.04
10780 needs : build-image
0 commit comments