From e65348809ceaf8541c3cf358487d0c7899a2e2f7 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 18 Dec 2024 08:47:16 +0800 Subject: [PATCH] Print docker history summary in build actions It is useful to know what the size of each layer is after the image has been built. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a742d90d..f882b5b21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,6 +102,10 @@ jobs: run: | docker images discourse/base + - name: Print `docker history` summary for main branch image + run: | + docker history discourse/base:2.0.${{ env.TIMESTAMP }}-main-${{ matrix.arch }} + - name: Print compressed summary if: github.event_name == 'pull_request' && matrix.arch == 'amd64' run: |