From add48ac9f45a4ee96ff62069e7b2960e072ca50a Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 20 Feb 2025 14:49:34 +0800 Subject: [PATCH] maybe Signed-off-by: Adrian Cole --- .github/workflows/docker-chatbot-rag-app.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker-chatbot-rag-app.yml b/.github/workflows/docker-chatbot-rag-app.yml index 6ff70b3f..04afc48c 100644 --- a/.github/workflows/docker-chatbot-rag-app.yml +++ b/.github/workflows/docker-chatbot-rag-app.yml @@ -48,6 +48,10 @@ jobs: id: build 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) || '' }} + # 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