drone-docker
drone-docker copied to clipboard
20.18.6 does not build all stages anymore
The trigger is almost certainly https://github.com/drone-plugins/drone-docker/pull/465 which upgraded Docker 20.10.14 -> 27.3.1. This switched to buildkit by default, which in turn changes the stage execution behavior.
This can be devastating to pipelines running tests in a separate stage:
FROM node:23.6.0@sha256:<something> AS base
FROM base AS build
COPY package.json .
COPY src .
RUN npm install
RUN npm build
FROM build AS tests
# After the upgrade to 20.18.6, these two commands to not run anymore.
COPY tests .
RUN npm test
FROM base AS image
COPY --from=build dist .
CMD ["dist/index.js"]
Not sure I would have realized that bumping a patch version from 20.18.4 -> 20.18.6 would have jumped 7?! major versions of docker
Not sure I would have realized that bumping a patch version from 20.18.4 -> 20.18.6 would have jumped 7?! major versions of docker
😂 looks like this yeah
ref: #466