Skip to content

Commit 97dd647

Browse files
use an explicit tag
Signed-off-by: Adrian Cole <[email protected]>
1 parent add48ac commit 97dd647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-chatbot-rag-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ jobs:
4949
with:
5050
context: example-apps/chatbot-rag-app
5151
# If this is a pull request, tag the image locally for testing.
52-
tags: ${{ github.event_name == 'pull_request' && format('{0}:latest', env.IMAGE) || '' }}
52+
tags: ${{ github.event_name == 'pull_request' && 'chatbot-rag-app:test' || '' }}
5353
# When pushing to main, push this image to the repository by digest
5454
# which is later used to assemble a multi-architecture image.
5555
outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.event_name == 'push' && 'true' || 'false' }}
5656
cache-from: type=gha
5757
cache-to: type=gha,mode=max
5858
- name: start elasticsearch
5959
if: github.event_name == 'pull_request'
60-
run: docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
60+
run: docker compose -f docker/docker-compose-elastic.yml up --quiet-pull -d --wait --wait-timeout 120 elasticsearch
6161
- name: test image
6262
if: github.event_name == 'pull_request'
6363
working-directory: example-apps/chatbot-rag-app
6464
run: | # This tests ELSER is working, which doesn't require an LLM.
6565
cp env.example .env
66-
docker compose run --rm -T create-index
66+
IMAGE=chatbot-rag-app:test docker compose run --rm -T create-index
6767
- name: export digest
6868
if: github.event_name == 'push'
6969
run: |

0 commit comments

Comments
 (0)