diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a77a80dba0..8371c27f61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,6 +56,7 @@ jobs: - test - unused-media - test-go-redirects + - dockerfile-lint steps: - name: Checkout diff --git a/Dockerfile b/Dockerfile index 7ede5d3832..98d99a6750 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ # syntax=docker/dockerfile-upstream:master +# check=skip=InvalidBaseImagePlatform # ALPINE_VERSION sets the Alpine Linux version for all Alpine stages ARG ALPINE_VERSION=3.20 diff --git a/docker-bake.hcl b/docker-bake.hcl index e6a2bad99e..49d109328a 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -32,7 +32,7 @@ target "release" { } group "validate" { - targets = ["lint", "test", "unused-media", "test-go-redirects"] + targets = ["lint", "test", "unused-media", "test-go-redirects", "dockerfile-lint"] } target "test" { @@ -59,6 +59,10 @@ target "test-go-redirects" { provenance = false } +target "dockerfile-lint" { + call = "check" +} + # # releaser targets are defined in _releaser/Dockerfile # and are used for AWS S3 deployment