Skip to content

Commit

Permalink
build: run versions command in the slim stage (#5127)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ferrarimarco committed Jan 11, 2024
1 parent 4a28fc5 commit d5da0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5da0ce

Please sign in to comment.