Just to clarify, you can't include extra docker im...
# general
s
Just to clarify, you can't include extra docker image tags via the CLI right? You also can't
Copy code
[docker.registries.foo]
address = "us-docker.pkg.dev"
repository = "foo/{name}"
extra_image_tags=["{build_args.BUILD_NUMBER}"]
and then
pants --docker-registries='@foo' publish demo
?
I think I'm trying to misuse "registry" here as an alias for a group of configuration since I'm getting
Copy code
DockerRegistryAddressCollisionError: Duplicated docker registry address for aliases: i-amlg-dev, i-amlg-prod. Each registry `address` in `[docker].registries` must be unique.
In CI we have two pipelines. One is a "feature" pipeline for running when someone is working on a feature branch and another is when we merge into main. I want to start including a "build number" in the main pipeline. but not feature pipeline. I suppose I could configure
PANTS_CONFIG_FILES
to point to different files
Or write a custom plugin
Alternatively just have a fake build number like 0 for the feature pipeline
n
You can also use environment variables in the config file. You can conditionally set env vars in
.pants.bootstrap