build: make release the default build stage

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-05-20 16:21:28 +02:00
parent 4b4698a4f3
commit 8be3964c58
1 changed files with 2 additions and 4 deletions

View File

@ -31,9 +31,6 @@ ARG HUGO_ENV
ARG 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
USER root
RUN --mount=type=bind,target=. \
@ -79,4 +76,5 @@ COPY --from=build-upstream /out ./public
ADD .htmltest.yml .htmltest.yml
RUN htmltest
FROM dev
FROM scratch AS release
COPY --from=build /out /