-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.Relevant to the infrastructure team, which will review and decide on the PR/issue.
Description
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
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.Relevant to the infrastructure team, which will review and decide on the PR/issue.