File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,14 @@ lint: ## run linter(s)
8484
8585.PHONY : docs
8686docs : # # generate documentation
87- @docker build . \
88- --output type=local,dest=./docs/ \
87+ $(eval $@ _TMP_OUT := $(shell mktemp -d -t dockercli-output.XXXXXXXXXX) )
88+ docker build . \
89+ --output type=local,dest=$($@ _TMP_OUT) \
8990 -f ./docs/docs.Dockerfile \
9091 --target update
92+ rm -rf ./docs/internal
93+ cp -R " $( $@ _TMP_OUT) " /out/* ./docs/
94+ rm -rf " $( $@ _TMP_OUT) " /*
9195
9296.PHONY : validate-docs
9397validate-docs : # # validate the doc does not change
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ cp -r docs/reference /out
3939EOT
4040
4141FROM scratch AS update
42- COPY --from=gen /out /
42+ COPY --from=gen /out /out
4343
4444FROM gen AS validate
4545RUN --mount=target=/context \
You can’t perform that action at this time.
0 commit comments