-
Notifications
You must be signed in to change notification settings - Fork 16
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
💝 Auto-skip push to registry if secrets are not set #12
base: main
Are you sure you want to change the base?
💝 Auto-skip push to registry if secrets are not set #12
Conversation
@cardil: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cardil The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
I lack context, what's the reason for this?
I would like to have option to run those builds for PRs, and other development branches, so you may know that it should build the images well, before the merge. |
In that case, can't we use something like |
This is a reusable action that builds and pushes images. It makes sense to push only if the secrets are set, right? Depending on secrets makes far more sense than limiting this to work in pushes only, which for me, is unrelated to pushing to the registry. |
What does it bring ... depending on the secrets? This github action will always run on github, not locally. |
@mgencur wrote:
Sure, it will always run on Github. I thought this may allow testing the build on fork, as the forks doesn't have secrets configured. You push your code to your fork, and Github action fires on your fork repo, before you even create a PR.
I think both of those conditions are valid. I'll add |
Changes
/kind enhancement