Skip to content

Commit

Permalink
actually move the image to the test job
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 d2b8fb0 commit 0fae574
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/docker-chatbot-rag-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +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
if: github.event_name == 'pull_request'
run: docker save ${{ env.IMAGE }} -o image.tar
- name: upload image artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: image-${{ matrix.runner }}
path: image.tar
- name: export digest
if: github.event_name == 'push'
run: |
Expand Down Expand Up @@ -79,16 +88,19 @@ jobs:
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: |
echo "Testing image ${IMAGE}"
cp env.example .env
docker compose run --rm -T create-index
env:
IMAGE: ${{ needs.build-image.outputs.digest }}
push-manifest:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit 0fae574

Please sign in to comment.