mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
ci: add dockerfile check
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -56,6 +56,7 @@ jobs:
|
||||
- test
|
||||
- unused-media
|
||||
- test-go-redirects
|
||||
- dockerfile-lint
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user