-
Notifications
You must be signed in to change notification settings - Fork 138
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
From Drone to Github Action #233
Comments
I agree with the |
Can you elaborate @thebsdbox |
This sounds reasonable to me. The images I would expect to find published would be "latest", any special long-lived branches, and tagged releases. Additional git-sha based images are noise. IMHO, when tests are run for a PR, e2e tests should avoid publishing images and rely on pushing the image onto the test nodes directly. This avoids caching problems but also keeps our tests focused on the images themselves and not the image distribution system.
I didn't read the warning before writing the following: E2E tests on 'latest' and tagged releases may benefit from using registry fetched images, but this creates a chicken-and-egg problem. Do you publish images before the E2E test, for the E2E test? Or do you wait for the E2E test to pass (using local copies of the images) before publishing them? |
All testing and development images if possible should be pushed to some internal registry for testing so we can ideally do what ever tests we need to do without confusing what ever external registry we decide as our "source of truth" for published images. |
The image pushes go to a separate quay repo, thats true for all of our repos here. See https://github.com/tinkerbell/tink/blob/master/.drone.yml#L85 vs https://github.com/tinkerbell/tink/blob/master/.drone.yml#L112
There are a couple of reasons we push PR images to a central repo.
So we already do that basically, but with the added benefit of it being publicly available. I'd like to keep this. We decided to split into a separate image so we could use different creds for the "true" repo vs the "pr" one, so that if creds ever leak from CI it would not affect released images. |
|
Ok, thank you for explaining to me the difference between *-pr repo and not. I think it is cool and I will replicate that.
I can use something like Another problem is that secrets gets not pushed to |
Bummer, but I'll take E2E tests over the -pr images any day. |
@displague this PR is not about e2e but it is more about porting what we have so far in drone. |
In the ongoing effort to release the pressure to our internal drone.io and to improve independency for Tinkerbell as a project, we should move our CI/CD to GitHub Actions.
I had a look at it, but I would like to discuss here how to re-do it to see if we can make some improvements along the way.
What does it currently do to commit and pull request:
What I think we should do in the order:
I am not against but I am not 100% sure we should push images for all the commits, it sounds a waste and confusing in our registry for community people coming and looking for a particular version. I think we should always build the images to see if everything works but we should push them only when a commit lands on the master branch using the
latest
tag maybe orunstable
if you agree with that I will proceed with the implementation:
THIS ISSUE IS NOT ABOUT RELEASE. It will have its own space
/cc. @mmlb @thebsdbox
The text was updated successfully, but these errors were encountered: