Skip to content

20.18.6 does not build all stages anymore #467

@gzm0

Description

@gzm0

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions