From 6d1db780d2d7c242a752c3340bf091d61aca5f66 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 11 Jun 2024 22:20:11 +0200 Subject: [PATCH] docs(github): Explain why there is no `cache-to` for the "minimal" image Signed-off-by: Sebastian Schuberth --- .github/workflows/docker-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 7fafb78bc0116..9ac588651af76 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -90,6 +90,8 @@ jobs: uses: docker/build-push-action@v5 with: context: . + # Do not "cache-to" here to not overwrite additional layers from the "full" image, which also contains all + # layers present in the "minimal" image anyway. push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-ort-minimal.outputs.tags }} labels: ${{ steps.meta-ort-minimal.outputs.labels }}