💝 Auto-skip push to registry if secrets are not set#12
💝 Auto-skip push to registry if secrets are not set#12cardil wants to merge 3 commits intoopenshift-knative:mainfrom
Conversation
|
@cardil: The label(s) DetailsIn 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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
pierDipi
left a comment
There was a problem hiding this comment.
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