use a temp directory to generate doc to be sure working tree is clean

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-03-17 14:47:26 +01:00 committed by Nicolas De loof
parent 099715fb6f
commit be187bae64
2 changed files with 7 additions and 3 deletions

View file

@ -39,7 +39,7 @@ cp -r docs/reference /out
EOT
FROM scratch AS update
COPY --from=gen /out /
COPY --from=gen /out /out
FROM gen AS validate
RUN --mount=target=/context \