Skip to content

Commit

Permalink
Print image info after build
Browse files Browse the repository at this point in the history
Show size and layer information about the docker image after the build
  • Loading branch information
julienp committed Dec 5, 2024
1 parent 2b0d8e0 commit 411df53
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -311,7 +323,12 @@ 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 }} \
--load
- name: Image Info
run: |
docker image ls ${{ env.DOCKER_ORG }}/pulumi-base:${{ env.PULUMI_VERSION }}-${{ matrix.os }}
docker history ${{ env.DOCKER_ORG }}/pulumi-base:${{ env.PULUMI_VERSION }}-${{ matrix.os }}
define-matrix:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -359,6 +376,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:
Expand Down Expand Up @@ -476,6 +497,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:
Expand Down

0 comments on commit 411df53

Please sign in to comment.