Skip to content

docker_image repository does not override default #20232

Open
@kuza55

Description

@kuza55

Describe the bug
Setting the repository flag on a docker_image target does not seem to override the default defined in pants.toml:

docker_image(
    name="base",
    image_tags=["0.1-{pants.hash}"],
    registries=[
        "@gcp",
    ],
    repository = "project/image",
)

Does not override

[docker.registries.gcp]
default = true
address = "europe-west4-docker.pkg.dev"
repository = "project/{directory}/{name}"

Pants version
2.17.0

OS
Linux via WSL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions