Skip to content
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1d445c3
Update build-image-test.yaml
MaxymVlasov Jan 25, 2025
4943f17
now it should fail and post comment
MaxymVlasov Jan 25, 2025
ec9c7b0
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
8b5b038
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
dc333e2
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
56a5f24
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
12621e2
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
1b2bce7
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
e7de7e8
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
6886b45
Apply suggestions from code review
MaxymVlasov Jan 25, 2025
0da50b1
Apply suggestions from code review
MaxymVlasov Jan 26, 2025
48dc6dd
Apply suggestions from code review
MaxymVlasov Jan 26, 2025
e3adc99
Apply suggestions from code review
MaxymVlasov Jan 26, 2025
f2d4613
Apply suggestions from code review
MaxymVlasov Jan 28, 2025
ce86d2d
Apply suggestions from code review
MaxymVlasov Jan 28, 2025
2587328
Apply suggestions from code review
MaxymVlasov Jan 28, 2025
87e75f0
Apply suggestions from code review
MaxymVlasov Jan 28, 2025
524b14f
Apply suggestions from code review
MaxymVlasov Jan 28, 2025
f70f959
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
dae0134
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
76beafd
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
a7922b1
Discard changes to .github/.dive-ci.yaml
MaxymVlasov Feb 12, 2025
df9d687
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
998c7b3
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
f76b731
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
433fac1
Update build-image-test.yaml
MaxymVlasov Feb 12, 2025
34f6721
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
12bca8f
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
d97dab3
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
cd46074
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
fef0568
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
7b731a2
Update build-image-test.yaml
MaxymVlasov Feb 13, 2025
a687bcf
Update build-image-test.yaml
MaxymVlasov Feb 23, 2025
c366a20
Update build-image-test.yaml
MaxymVlasov Feb 23, 2025
8d5ea6a
Update build-image-test.yaml
MaxymVlasov Feb 23, 2025
2118adf
Merge branch 'master' into dive
MaxymVlasov Feb 23, 2025
911f9b4
Update build-image-test.yaml
MaxymVlasov Feb 23, 2025
1e3572d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 23, 2025
8bfa879
Apply suggestions from code review
MaxymVlasov May 27, 2025
dbc8cb7
chore(release): version 1.0.0 [skip ci]
semantic-release-bot Sep 1, 2025
20acad8
Update dive-action version in workflow
MaxymVlasov Oct 23, 2025
856d008
Merge branch 'master' into dive
MaxymVlasov Oct 23, 2025
86ccd51
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 23, 2025
48f4e83
Enable collapsing of inefficient file details in CI
MaxymVlasov Oct 23, 2025
888cfb2
Update dive-action version in workflow
MaxymVlasov Oct 23, 2025
1cc6d1d
Apply suggestions from code review
MaxymVlasov Oct 23, 2025
5d12a3c
Update build-image-test.yaml
MaxymVlasov Oct 23, 2025
83d196c
Update dive-action version in workflow
MaxymVlasov Oct 23, 2025
886518b
Update build-image-test.yaml
MaxymVlasov Oct 23, 2025
5ed86f1
Update dive-action version in workflow
MaxymVlasov Apr 20, 2026
aa71484
Merge branch 'master' into dive
MaxymVlasov Apr 20, 2026
163342f
Update dive-action version in workflow
MaxymVlasov Apr 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 12 additions & 50 deletions .github/workflows/build-image-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Build Dockerfile if changed and run smoke tests
on:
merge_group:
pull_request:

permissions:
contents: read
workflow_dispatch:

env:
IMAGE_TAG: pr-test
Expand Down Expand Up @@ -66,8 +64,11 @@ jobs:
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
build-args: |
INSTALL_ALL=true
# build-args: |
# INSTALL_ALL=true
# yamllint disable-line rule:line-length
platforms: >-
linux/${{ matrix.arch }}
push: false
load: true
tags: ${{ env.IMAGE }}
Expand All @@ -76,55 +77,16 @@ jobs:
secrets: |
"github_token=${{ secrets.GITHUB_TOKEN }}"

- name: Setup Container Structure Tests
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
# yamllint disable-line rule:line-length
# renovate: datasource=github-releases depName=container-structure-test lookupName=GoogleContainerTools/container-structure-test
CST_VERSION: 1.19.3
CST_REPO: github.com/GoogleContainerTools/container-structure-test
run: >-
curl -L "https://${{ env.CST_REPO }}/releases/download/v${{
env.CST_VERSION }}/container-structure-test-linux-${{ matrix.arch }}"
> container-structure-test
&& chmod +x container-structure-test
&& mkdir -p $HOME/bin/
&& mv container-structure-test $HOME/bin/
&& echo $HOME/bin/ >> $GITHUB_PATH

- name: Run structure tests
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
IMAGE_NAME: ${{ env.IMAGE }}
run: >-
container-structure-test test
--config ${{ github.workspace
}}/.github/.container-structure-test-config.yaml
--image "${IMAGE_NAME}"

- name: Dive - check image for waste files
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: MaxymVlasov/dive-action@b08c8287e603d028c986d7044e83fa76bcca6a65 # v1.5.0
# yamllint disable-line rule:line-length
uses: MaxymVlasov/dive-action@10db520f58bd0eaf2ed37b4da31096d1856c095e
with:
image: ${{ env.IMAGE }}
# dive-image-registry: '|'
# always-comment: false
config-file: ${{ github.workspace }}/.github/.dive-ci.yaml
github-token: ${{ secrets.GITHUB_TOKEN }}

# Can't build both platforms and use --load at the same time
# https://github.com/docker/buildx/issues/59#issuecomment-1433097926
- name: Build Multi-arch docker-image
if: >-
steps.changed-files-specific.outputs.any_changed == 'true'
&& matrix.os == 'ubuntu-latest'
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
build-args: |
INSTALL_ALL=true
platforms: linux/amd64,linux/arm64
push: false
tags: ${{ env.IMAGE }}
# Fix multi-platform: https://github.com/docker/buildx/issues/1533
provenance: false
secrets: |
"github_token=${{ secrets.GITHUB_TOKEN }}"
# dive-image-registry: wagoodman/dive
# dive-image-version: v0.12.0
Loading