-
Notifications
You must be signed in to change notification settings - Fork 174
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
feat: logout docker registries in post step #70
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
cleanup.js
Outdated
if (exitCode != 0) { | ||
core.debug(doLogoutStdout); | ||
throw new Error('Could not logout: ' + doLogoutStderr); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to try to log out of all of the registries and then throw an error with which ones failed instead of failing after the first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup that makes sense, fixed in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Ship it! 💯
Due to this change, our CI pipeline broke. We have multiple workers on the same machine (same docker daemon) and now while they are pushing things to docker, as soon as one job finishes, it will wipe the credentials for the other jobs. Is there a way to make this behaviour optional? |
@rubenfonseca Thanks for reporting this, I'll cut and issue and we'll work on a fix. |
@rubenfonseca in the meantime you can pin to a previous version of the action to get unblocked. See #77 |
That’s what we did and it worked. Thank you very much!
… On 13 Aug 2020, at 20.52, allisaurus ***@***.***> wrote:
@rubenfonseca in the meantime you can pin to a previous version of the action to get unblocked. See #77
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
In the post-job cleanup, do a
docker logout
for all registries that had a successfuldocker login
via this action.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.