From 65170ef226843fa74e30f7c12caed76a6fd72f00 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Thu, 5 Dec 2024 11:59:24 +0100 Subject: [PATCH] Print image info after build Show size and layer information about the docker image after the build --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc8a416..55aa493 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,6 +107,10 @@ jobs: --build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }} \ --load \ docker/pulumi + - name: Image Info + run: | + docker image ls ${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }} + docker history ${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }} - name: Build nonroot variant run: | docker build \ @@ -117,6 +121,10 @@ jobs: --build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }} \ --load \ docker/pulumi + - name: Image Info + run: | + docker image ls ${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-nonroot + docker history ${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-nonroot - name: Install go uses: actions/setup-go@v5 with: @@ -232,6 +240,10 @@ jobs: --build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }} \ --load \ docker/pulumi + - name: Image Info + run: | + docker image ls ${{ env.DOCKER_ORG }}/pulumi-provider-build-environment:${{ env.PULUMI_VERSION }} + docker history ${{ env.DOCKER_ORG }}/pulumi-provider-build-environment:${{ env.PULUMI_VERSION }} - name: Install go uses: actions/setup-go@v5 with: @@ -311,7 +323,7 @@ jobs: --platform linux/arm64,linux/amd64 \ . \ -t ${{ env.DOCKER_ORG }}/pulumi-base:${{ env.PULUMI_VERSION }}-${{ matrix.os }} \ - --build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }} + --build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }} \ define-matrix: runs-on: ubuntu-latest outputs: @@ -359,6 +371,10 @@ jobs: --build-arg LANGUAGE_VERSION=${{ matrix.language_version }} \ docker/${{ matrix.sdk }} \ --load + - name: Image Info + run: | + docker image ls ${{ env.IMAGE_NAME }} + docker history ${{ env.IMAGE_NAME }} - name: Install go uses: actions/setup-go@v5 with: @@ -476,6 +492,10 @@ jobs: --build-arg LANGUAGE_VERSION=${{ matrix.language_version }} \ docker/${{ matrix.sdk }} \ --load + - name: Image Info + run: | + docker image ls ${{ env.IMAGE_NAME }} + docker history ${{ env.IMAGE_NAME }} - name: Install go uses: actions/setup-go@v5 with: