Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): set $DOCKER_CONFIG if unset #13155

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

agilgur5
Copy link
Member

@agilgur5 agilgur5 commented Jun 8, 2024

Fixes #12791 (comment)

Motivation

Per the linked comment above, it seems like Azure/docker-login may have set this env var and so when that was changed to docker/login-action, this line errored out

Modifications

  • set a default for $DOCKER_CONFIG in case it is unset
    • Per Docker's docs, the default is ~/.docker/config.json (can also confirm locally)

Verification

This new line runs locally for me:

❯  : ${DOCKER_CONFIG:=~/.docker}; echo "$DOCKER_CONFIG"
/<redacted>/.docker

and $DOCKER_CONFIG is unset without it

But testing the entire GHA workflow is unfortunately very non-trivial 😕

- It seems like `Azure/docker-login` may have set this env var and so when that was changed, this line errored out
  - so set a default in case it is unset
    - Per [Docker's docs](https://docs.docker.com/engine/reference/commandline/cli/#environment-variables), the default is `~/.docker/config.json` (can also confirm locally)

Signed-off-by: Anton Gilgur <[email protected]>
@terrytangyuan terrytangyuan merged commit effcab7 into argoproj:main Jun 8, 2024
16 checks passed
@agilgur5 agilgur5 deleted the fix-release-docker-config branch June 8, 2024 16:30
@agilgur5
Copy link
Member Author

agilgur5 commented Jun 8, 2024

All green on main now ✅

agilgur5 added a commit that referenced this pull request Aug 1, 2024
Signed-off-by: Anton Gilgur <[email protected]>
(cherry picked from commit effcab7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants