From 12153f737ef95b39e9c8a6791dd35cb96c56cf4a Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 18 Dec 2024 09:09:50 +0800 Subject: [PATCH] Print docker history summary in build actions (#898) 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 1a742d9..f882b5b 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: | -- 2.25.1