Skip to content

Commit 0fae574

Browse files
actually move the image to the test job
Signed-off-by: Adrian Cole <[email protected]>
1 parent d2b8fb0 commit 0fae574

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +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
55+
if: github.event_name == 'pull_request'
56+
run: docker save ${{ env.IMAGE }} -o image.tar
57+
- name: upload image artifact
58+
if: github.event_name == 'pull_request'
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: image-${{ matrix.runner }}
62+
path: image.tar
5463
- name: export digest
5564
if: github.event_name == 'push'
5665
run: |
@@ -79,16 +88,19 @@ jobs:
7988
runs-on: ubuntu-latest
8089
steps:
8190
- 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
8297
- name: start elasticsearch
8398
run: docker compose -f docker/docker-compose-elastic.yml up elasticsearch -d --wait --wait-timeout 120
8499
- name: test image
85100
working-directory: example-apps/chatbot-rag-app
86101
run: |
87-
echo "Testing image ${IMAGE}"
88102
cp env.example .env
89103
docker compose run --rm -T create-index
90-
env:
91-
IMAGE: ${{ needs.build-image.outputs.digest }}
92104
93105
push-manifest:
94106
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)