Are there extra steps to get publish working for d...
# general
g
Are there extra steps to get publish working for docker images using amazon-ecr-credentials-helper ? https://github.com/awslabs/amazon-ecr-credential-helper#configuration
I'm getting an authentication error with
./pants publish
but I can push and pull manually with no problems
s
yes, you have to plumb through any env vars used by the helper to locate your AWS creds
one sec…
in our
pants.toml
we set:
Copy code
[docker]
tools = ["docker-credential-ecr-login", "sh"]
env_vars = [
    "HOME",
    # AWS auth vars.
    "AWS_PROFILE",
    "AWS_DEFAULT_REGION",
    "AWS_ACCESS_KEY_ID",
    "AWS_SECRET_ACCESS_KEY",
    "AWS_SESSION_TOKEN",
    "AWS_ROLE_ARN",
    "AWS_WEB_IDENTITY_TOKEN_FILE",
]
❤️ 3
g
oh awesome, thanks Dan
tools
seems to be an invalid option, might have to upgrade pants I guess
s
ah, yes. added in 2.11 I think(?)
💯 1