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