Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20.18.6 does not build all stages anymore #467

Open
gzm0 opened this issue Jan 13, 2025 · 1 comment
Open

20.18.6 does not build all stages anymore #467

gzm0 opened this issue Jan 13, 2025 · 1 comment

Comments

@gzm0
Copy link

gzm0 commented Jan 13, 2025

The trigger is almost certainly #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"]
@jwetzell
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants