diff --git a/.github/workflows/build-image-test.yaml b/.github/workflows/build-image-test.yaml index bba8da1a9..d8b10ae84 100644 --- a/.github/workflows/build-image-test.yaml +++ b/.github/workflows/build-image-test.yaml @@ -1,6 +1,6 @@ name: "Build Dockerfile if changed and run smoke tests" -on: [pull_request] +on: push env: IMAGE_TAG: pr-test @@ -43,8 +43,8 @@ jobs: uses: docker/build-push-action@94f8f8c2eec4bc3f1d78c1755580779804cb87b2 # v6.0.1 with: context: . - build-args: | - INSTALL_ALL=true + # build-args: | + # INSTALL_ALL=true platforms: linux/${{ matrix.arch }} # Only one allowed here, see https://github.com/docker/buildx/issues/59#issuecomment-1433097926 push: false load: true @@ -55,16 +55,16 @@ jobs: secrets: | "github_token=${{ secrets.GITHUB_TOKEN }}" - - name: Run structure tests - if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0 - with: - image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} - config: .github/.container-structure-test-config.yaml + # - name: Run structure tests + # if: steps.changed-files-specific.outputs.any_changed == 'true' + # uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0 + # with: + # image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} + # config: .github/.container-structure-test-config.yaml - name: Dive - check image for waste files if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: MaxymVlasov/dive-action@0035999cae50d4ef657ac94be84f01812aa192a5 # v0.1.0 + uses: MaxymVlasov/dive-action@e03b161390d423d500f42aacd0e91520801233f3 with: image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} config-file: ${{ github.workspace }}/.github/.dive-ci.yaml