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 2cb385a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .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 @@ -312,6 +324,10 @@ jobs:
. \
-t ${{ env.DOCKER_ORG }}/pulumi-base:${{ env.PULUMI_VERSION }}-${{ matrix.os }} \
--build-arg PULUMI_VERSION=${{ env.PULUMI_VERSION }}
- 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 +375,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 +496,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 2cb385a

Please sign in to comment.