Skip to content

Commit

Permalink
add steps to build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Feb 9, 2024
1 parent 0ddf135 commit ee5bb1e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ All updates are done automatically every night if a new version of ODH operator
New versions of fluent classes are built, pushed to github storage and then a new version is set in test suite.

For more information how the generator works see the [documentation](https://github.com/fabric8io/kubernetes-client/blob/main/doc/java-generation-from-CRD.md).

## How to Generate and Publish io.odh.opendatahub-crds
_Note: this process is optional, you could re-use the package from the repo https://github.com/skodjob/opendatahub-crds to author new tests_

1. Fork this repo to your account
1. Edit the pom.xml
- replace https://github.com/skodjob/opendatahub-crds with the url of your fork
- replace https://maven.pkg.github.com/skodjob/opendatahub-crds with the mave pkg url of your fork (i.e., replace skodjob with your username)
- (Optional) Edit the URLs under `<plugin>/<configuration>/<urls>` in order to use your selection of CRDs
1. Generate a Github token (classic) with `write:packages` permissions
1. Ensure to set your ~/.m2/settings.xml to use the token. More info at Github official doc [Authenticating with a personal access token](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-with-a-personal-access-token)
1. from your terminal, run `mvn deploy`
- use `mvn deploy -X` for full stack error messages

0 comments on commit ee5bb1e

Please sign in to comment.