From d5da0ceac93d03c8f4d19fc4130162cec18df530 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Thu, 11 Jan 2024 21:30:18 +0100 Subject: [PATCH] build: run versions command in the slim stage (#5127) Move the invocation of the command to build the linter versions file in the slim stage because we run it again in the standard stage anyway, so there's no need for the standard stage to wait for this command to run. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a36da217..591ed83e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -394,13 +394,13 @@ COPY TEMPLATES /action/lib/.automation ################################# COPY lib /action/lib -# Run to build version file and validate image -RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true IMAGE="${IMAGE}" /action/lib/linter.sh - ENTRYPOINT ["/action/lib/linter.sh"] FROM base_image as slim +# Run to build version file and validate image +RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true IMAGE="${IMAGE}" /action/lib/linter.sh + # Set build metadata here so we don't invalidate the container image cache if we # change the values of these arguments ARG BUILD_DATE