From 8c44055e5a0fde66b736cbbb1bcee6097294a13a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 5 Sep 2022 17:05:48 +0200 Subject: [PATCH] Dockerfile: fix license validation Signed-off-by: CrazyMax --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d5ad3400..1f7d2061 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,16 +30,17 @@ ARG LICENSE_COPYRIGHT_HOLDER ARG LICENSE_FILES RUN --mount=type=bind,target=.,rw \ --mount=from=addlicense,source=/app/addlicense,target=/usr/bin/addlicense \ - find . -regex "${LICENSE_FILES}" | xargs addlicense -c "${LICENSE_COPYRIGHT_HOLDER}" -l "${LICENSE_TYPE}" \ + find . -regex "${LICENSE_FILES}" | xargs addlicense -v -c "${LICENSE_COPYRIGHT_HOLDER}" -l "${LICENSE_TYPE}" \ && mkdir /out \ && find . -regex "${LICENSE_FILES}" | cpio -pdm /out FROM scratch AS license-update -COPY --from=set /out / +COPY --from=license-set /out / FROM base AS license-validate -ARG LICENSE_ARGS +ARG LICENSE_TYPE +ARG LICENSE_COPYRIGHT_HOLDER ARG LICENSE_FILES RUN --mount=type=bind,target=. \ --mount=from=addlicense,source=/app/addlicense,target=/usr/bin/addlicense \ - find . -regex "${LICENSE_FILES}" | xargs addlicense -check ${LICENSE_ARGS} + find . -regex "${LICENSE_FILES}" | xargs addlicense -v -check -c "${LICENSE_COPYRIGHT_HOLDER}" -l "${LICENSE_TYPE}"