im having an issue publishing to a private repo fr...
# general
f
im having an issue publishing to a private repo from a github runner, im able to
docker login
, but for some reason pants is not inheriting the auth context. I have
[docker].env_vars
set to
DOCKER_CONFIG=%(homedir)s/.docker
but for some reason its not getting it
h
that config file is where your creds are stored?
@curved-television-6568 presumably there is a solution to this?
c
@fancy-daybreak-62348 is on the right track here. I’m wondering if there’s more missing, though. Is the docker credentials plugin available on the
PANTS_DOCKER_EXECUTABLE_SEARCH_PATHS
(if using one)? https://www.pantsbuild.org/docs/reference-docker#executable_search_paths
f
its using basic auth. i even did
cat ~/.docker/config.json
on the runner and its just the
echo user:pass | base64
in my
pants.toml
i have
DOCKER_CONFIG=%(homedir)s/.docker
, but, in my runner, that env variable is not set. Does that matter?(
echo $DOCKER_CONFIG
has no value)
even overriding $home and completely removing all helpers doesn’t seem to fix it on the runner :(
c
in the past we’ve debugged scenarios like these by replicating the hermetic environment of Pants using
env -i
to repro the issue, then from there adding in env vars until it works; for a quicker test/modify/eval-loop.
f
removing DOCKER_CONFIG from env_vars fixed it /shrug
🤷 1
😮 1