mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
test: remove pointless validation step
This validation was not caused in CI, and it can't really be in it's current form, since the hugo_stats.json contains a lot of false-positives, meaning that the file can easily become outdated without it actually impacting anything. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -34,17 +34,6 @@ RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
|
||||
FROM scratch AS release
|
||||
COPY --from=build /out /
|
||||
|
||||
FROM scratch AS update-stats
|
||||
COPY --from=build /src/hugo_stats.json /hugo_stats.json
|
||||
|
||||
FROM build AS validate-stats
|
||||
RUN <<EOF
|
||||
if [ -n "$(git status --porcelain -- hugo_stats.json)" ]; then
|
||||
echo >&2 'ERROR: hugo_stats.json differs. Update with `docker buildx bake update-stats`'
|
||||
exit 1
|
||||
fi
|
||||
EOF
|
||||
|
||||
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
|
||||
USER root
|
||||
RUN --mount=type=bind,target=. \
|
||||
|
||||
@@ -27,7 +27,7 @@ target "release" {
|
||||
}
|
||||
|
||||
group "validate" {
|
||||
targets = ["lint", "test", "validate-stats"]
|
||||
targets = ["lint", "test"]
|
||||
}
|
||||
|
||||
target "test" {
|
||||
@@ -172,13 +172,3 @@ target "validate-upstream" {
|
||||
target = "validate-upstream"
|
||||
output = ["type=cacheonly"]
|
||||
}
|
||||
|
||||
target "update-stats" {
|
||||
target = "update-stats"
|
||||
output = ["."]
|
||||
}
|
||||
|
||||
target "validate-stats" {
|
||||
target = "validate-stats"
|
||||
output = ["type=cacheonly"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user