Skip to content

Commit 74d9a20

Browse files
committed
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.
1 parent d963389 commit 74d9a20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ jobs:
102102
run: |
103103
docker images discourse/base
104104
105+
- name: Print `docker history` summary for main branch image
106+
if: matrix.arch == 'amd64'
107+
run: |
108+
docker history discourse/base:2.0.${{ env.TIMESTAMP }}-main-${{ matrix.arch }}
109+
105110
- name: Print compressed summary
106111
if: github.event_name == 'pull_request' && matrix.arch == 'amd64'
107112
run: |

0 commit comments

Comments
 (0)