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)
84
84
85
85
.PHONY : docs
86
86
docs : # # 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) \
89
90
-f ./docs/docs.Dockerfile \
90
91
--target update
92
+ rm -rf ./docs/internal
93
+ cp -R " $( $@ _TMP_OUT) " /out/* ./docs/
94
+ rm -rf " $( $@ _TMP_OUT) " /*
91
95
92
96
.PHONY : validate-docs
93
97
validate-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
39
39
EOT
40
40
41
41
FROM scratch AS update
42
- COPY --from=gen /out /
42
+ COPY --from=gen /out /out
43
43
44
44
FROM gen AS validate
45
45
RUN --mount=target=/context \
You can’t perform that action at this time.
0 commit comments