diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3ce160859..161fd2bdff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,7 +80,6 @@ jobs: - unused-media - test-go-redirects - dockerfile-lint - - path-warnings - validate-vendor steps: - diff --git a/Dockerfile b/Dockerfile index 23db074116..a2c96589c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,14 @@ ARG HUGO_ENV="development" ARG DOCS_URL="https://docs.docker.com" ENV HUGO_CACHEDIR="/tmp/hugo_cache" RUN --mount=type=cache,target=/tmp/hugo_cache \ - hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL + hugo \ + --gc \ + --minify \ + --panicOnWarning \ + --printPathWarnings \ + --printUnusedTemplates \ + -b $DOCS_URL \ + -e $HUGO_ENV RUN ./hack/flatten-and-resolve.js public # lint lints markdown files @@ -145,18 +152,6 @@ RUN apk add --no-cache fd ripgrep WORKDIR /test RUN --mount=type=bind,target=. ./hack/test/unused_media -# path-warnings checks for duplicate target paths -FROM build-base AS path-warnings -RUN hugo --printPathWarnings > ./path-warnings.txt -RUN <