ci: add dockerfile check

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-08-12 16:47:50 +02:00
parent 79ff211be8
commit 61cdf6f1cc
3 changed files with 7 additions and 1 deletions

View File

@ -56,6 +56,7 @@ jobs:
- test - test
- unused-media - unused-media
- test-go-redirects - test-go-redirects
- dockerfile-lint
steps: steps:
- -
name: Checkout name: Checkout

View File

@ -1,4 +1,5 @@
# syntax=docker/dockerfile-upstream:master # syntax=docker/dockerfile-upstream:master
# check=skip=InvalidBaseImagePlatform
# ALPINE_VERSION sets the Alpine Linux version for all Alpine stages # ALPINE_VERSION sets the Alpine Linux version for all Alpine stages
ARG ALPINE_VERSION=3.20 ARG ALPINE_VERSION=3.20

View File

@ -32,7 +32,7 @@ target "release" {
} }
group "validate" { group "validate" {
targets = ["lint", "test", "unused-media", "test-go-redirects"] targets = ["lint", "test", "unused-media", "test-go-redirects", "dockerfile-lint"]
} }
target "test" { target "test" {
@ -59,6 +59,10 @@ target "test-go-redirects" {
provenance = false provenance = false
} }
target "dockerfile-lint" {
call = "check"
}
# #
# releaser targets are defined in _releaser/Dockerfile # releaser targets are defined in _releaser/Dockerfile
# and are used for AWS S3 deployment # and are used for AWS S3 deployment