-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update automated workflow to allow for overriding orgs for dockerhub and quay #250
Conversation
/assign @displague |
@detiber a few questions:
|
It allows to standardize a bit how we are creating the metadata and avoiding some copy-pasta type issues, since it needs to be run by multiple jobs.
I'd rather not use a secret here TBH, but it's the only way that I could figure out how to override the value on a per-org basis, so that users can run/publish/test using their own quay/dockerhub/ghcr orgs for testing in their own forks. Otherwise users would have to hack things up and override hardcoded values in the repo in order to override upstream quay/dockerhub orgs. |
So if I want to test the CI by launching an action manually, but pushing to a different org (not affect the official distributed supported EQXM images), then I can change the secret? But how would I do that without being admin, and doesn't it then permanently change it, so now I need an admin to put it back? Admittedly, testing for actions is kind of miserable. |
So, basically, the secrets only exist for this repository. If a user wanted to test on their fork, they would define their own secrets there. Since their fork is under their personal account, they have admin permissions to add secrets there. |
As a more concrete example, when testing this in my fork, I configured |
Oh, I get it. So you can test on your own fork, then open the PR when the action looks good. There seriously has to be a better way to test actions. My instinct says, "oh, just push to a local registry", but that doesn't work when CI is running on GH Actions in their runners. I guess it looks good, then, but do you mind adding something to the docs about testing, i.e. how to do what you just described? "in your own fork, add secrets, etc." Then we need @displague to add the necessary secrets before merging. |
So, one could use https://github.com/nektos/act for testing locally, but last time I tried it I ran into all sorts of issues when testing and not being able to replicate the github actions environment enough for things like artifacts, caching, and interacting with a ghcr.io registry. |
Secrets have been added, I'll work on updating the documentation here shortly |
…and quay Signed-off-by: Jason DeTiberus <[email protected]>
e9bacf7
to
9446e72
Compare
@deitch this should be ready to go now :) |
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.
LGTM. Still needs to wait for secrets from @displague ?
Nope, I updated the secrets a bit ago after @displague sent them my way. |
Cool. Then let's do it! |
Update automated workflow to allow for overriding orgs for dockerhub and quay