mirror of https://github.com/docker/docs.git
build: make release the default build stage
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
4b4698a4f3
commit
8be3964c58
|
@ -31,9 +31,6 @@ ARG HUGO_ENV
|
||||||
ARG DOCS_URL
|
ARG DOCS_URL
|
||||||
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
|
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
|
||||||
|
|
||||||
FROM scratch AS release
|
|
||||||
COPY --from=build /out /
|
|
||||||
|
|
||||||
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
|
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
|
||||||
USER root
|
USER root
|
||||||
RUN --mount=type=bind,target=. \
|
RUN --mount=type=bind,target=. \
|
||||||
|
@ -79,4 +76,5 @@ COPY --from=build-upstream /out ./public
|
||||||
ADD .htmltest.yml .htmltest.yml
|
ADD .htmltest.yml .htmltest.yml
|
||||||
RUN htmltest
|
RUN htmltest
|
||||||
|
|
||||||
FROM dev
|
FROM scratch AS release
|
||||||
|
COPY --from=build /out /
|
||||||
|
|
Loading…
Reference in New Issue