Skip to content

Commit

Permalink
use an explicit tag
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 add48ac commit 97dd647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-chatbot-rag-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ jobs:
with:
context: example-apps/chatbot-rag-app
# If this is a pull request, tag the image locally for testing.
tags: ${{ github.event_name == 'pull_request' && format('{0}:latest', env.IMAGE) || '' }}
tags: ${{ github.event_name == 'pull_request' && 'chatbot-rag-app:test' || '' }}
# When pushing to main, push this image to the repository by digest
# which is later used to assemble a multi-architecture image.
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: start elasticsearch
if: github.event_name == 'pull_request'
run: docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
run: docker compose -f docker/docker-compose-elastic.yml up --quiet-pull -d --wait --wait-timeout 120 elasticsearch
- name: test image
if: github.event_name == 'pull_request'
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
IMAGE=chatbot-rag-app:test docker compose run --rm -T create-index
- name: export digest
if: github.event_name == 'push'
run: |
Expand Down

0 comments on commit 97dd647

Please sign in to comment.