Skip to content

Incorrect SCRIPT_ARG handling for docker images #143962

@nikic

Description

@nikic

SCRIPT_ARG is provided via --build-arg when building the docker image. The same Dockerfile will be built with different SCRIPT_ARGs.

However, the IMAGE_TAG for the built images does not include this information. This means that the image in the registry will end up with a hardcoded SCRIPT_ARG that is basically chosen at random (I think).

This doesn't matter for CI, but it does mean that running jobs using SCRIPT_ARG locally using ci-tool will give unexpected results.

This could be fixed by including SCRIPT_ARG in the cache key, but TBH I don't understand why this one thing is using --build-arg at all, and not going through an environment variable like everything else.

@marcoieni @Kobzol

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions