Hi, I am trying to use the pants publish to push d...
# general
b
Hi, I am trying to use the pants publish to push docker images to private repositories. I can use it if I have config.json with auth in format of username + password and i specify full path in pants.toml and the files are correctly pushed to the registry.
Copy code
[docker]
env_vars = [
  "DOCKER_CONFIG=/full/path/to/config/docker"
]
When i tried to use relative path (e.g. I am in my project root where pants.toml is located) and theres file config file in docker folder as
docker/config.json
, I would probably expect it to work like this:
Copy code
[docker]
env_vars = [
  "DOCKER_CONFIG=docker"
]
but I get auth error. Is there a way this is evaluated and how to use this? I noticed there was an example with
%(homedir)s
in the docs but didn’t make that working either. How is the value evaluated?
h
cc @curved-television-6568
c
it’s just an env var passed through unmodified, so if you can get the
DOCKER_CONFIG
working with a relative path outside of pants, it should work the same when using pants.