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
How to deploy functions automatically in CI? #2278
Comments
Hello @drriguz, Yes, this is a use-case which we think is core to the usage of Functions. I am sorry we don't have documentation or additional resources yet available, but they are on the way! For now you really have one best option: Run When your CI/CD action runs So if you have been able to build and deploy your Function from your local machine, it will have the registry already set. Commit everything (including the func.yaml). Then, your CI/CD action should have the following pseudocode:
|
Please re-open if this did not answer your question @drriguz, or join us in the CNCF Slack channel to help put together your CI/CD task. |
Thanks, this solves my problem. In my case, I have a problem building the source in CI because it's air-gapped network, my choice is currently running build on local device and use |
Hello,
I'm tring to deploy functions automatically using tekton, and ci is expected to be triggered by git commits. I could not find any document mentioning the way to deploy functions in ci, I think there might be a few options:
func deploy --remote
will create a pipeline to deploy the function, we can reuse the created pipeline and configure a tekton trigger to initialize the pipelinerunfunc deploy --remote
directly inside a tekton task?Whic one is recommended?
The text was updated successfully, but these errors were encountered: