-
Notifications
You must be signed in to change notification settings - Fork 110
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
Document how to release Crossplane extensions (providers, functions, etc.) #785
Comments
This may be out of scope for the original intent of this issue, which is to document how to use the CI Action that comes from this template repo for golang functions. But i'm getting the feeling the scope of this effort could be also beneficial if it applied to the entire ecosystem of how to publish and release providers (both native and upjet) too. There's small differences between all the processes that I've firsthand seen trip some folks up over the past couple weeks. One example is how some repos use and some repos use Another example is that the CI Action from this template repo asks you what tag to use for the package, while others infer that package tag from the github tags. Small differences have been confusing for folks, so making it clear what to do for what type of repo/package you have could be helpful. (or just unifying everything to make it consistent, but that's probably more disruptive 😂 ) |
Part of the divergence is due to the complexity of the average provider vs the average function. Few enough folks write providers that we haven't been too worried about making people learn the Upbound build submodule to do so. On the other hand, I deemed it too much for functions. If we did want to bring the experiences closer together perhaps we could assess whether Providers could use a lighter weight CI, like functions. |
Assuming we're leaning on upbound/build for the foreseeable future one thing that has caught community members off guard is the semver format: https://github.com/upbound/build/blob/master/makelib/common.mk#L227 It's not well-documented anywhere yet that |
@jastang functions don't use the build submodule, mostly they're just using multi-stage Dockerfiles. They use |
as I'm in the process of creating a provider (I'm about to finish) |
What problem are you facing?
The function template repos (e.g. https://github.com/crossplane/function-template-go and https://github.com/crossplane/function-template-python) set up a GitHub Action named CI. Using the Action is optional, but it can help with releasing a new function. I think it would be useful to document a release branch pattern that function authors could choose to use.
How could this Function help solve your problem?
For the functions I maintain, I first setup a https://marketplace.upbound.io repository (docs at https://docs.upbound.io):
crossplane-contrib
and the repository might befunction-auto-ready
.XPKG_ACCESS_ID
.XPKG_TOKEN
Once these tokens are created the CI job will push a package for every PR merged to master, using a tag like
v0.0.0-20231101115142-1091066df799
as described in crossplane/function-template-go#38.Then, to cut a new minor version release the process is pretty simple. I:
release-0.2
using the GitHub UI.v0.2.0
using the GitHub UI, using the above branch. This creates a new tag.v0.2.0
) and tell it to tag the package with the same tag.The text was updated successfully, but these errors were encountered: