jx-release-version
jx-release-version is a CLI tool that helps you to release new versions of your projects.See https://github.com/jenkins-x-plugins/jx-release-version for more information.
Installation
dagger install github.com/vbehar/daggerverse/jx-release-version@v0.5.1
Entrypoint
Return Type
JxReleaseVersion !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
imageRepository | String | "ghcr.io/jenkins-x/jx-release-version" | image repository of jx-release-version. |
imageTag | String | "2.7.6@sha256:603d9c7c3cdbb14210abbd04d386f138c0490ebce267f341053c5b24f32fa772" | image tag of jx-release-version. See https://github.com/jenkins-x-plugins/jx-release-version/releases for available tags. |
logLevel | String | "info" | log level to use for the command. |
Example
func (m *myModule) example() *JxReleaseVersion {
return dag.
JxReleaseVersion()
}
Types
JxReleaseVersion 🔗
JxReleaseVersion is a Dagger Module to interact with the jx-release-version CLI.
imageRepository() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
JxReleaseVersion().
ImageRepository(ctx)
}
imageTag() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
JxReleaseVersion().
ImageTag(ctx)
}
logLevel() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
JxReleaseVersion().
LogLevel(ctx)
}
container() 🔗
Container returns a container with jx-release-version installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
gitDirectory | Directory | - | git directory to include in the container. |
Example
func (m *myModule) example() *Container {
return dag.
JxReleaseVersion().
Container()
}
nextVersion() 🔗
NextVersion returns the next version of the given git repository.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
gitDirectory | Directory ! | - | git directory to include in the container. |
fetchTags | Boolean | false | If true, fetch tags from the remote repository before detecting the previous version. |
previousVersionStrategy | String | "auto" | strategy to use to read the previous version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
nextVersionStrategy | String | "auto" | strategy to use to calculate the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
outputFormat | String | "{{.Major}}.{{.Minor}}.{{.Patch}}" | output format of the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
Example
func (m *myModule) example(ctx context.Context, gitDirectory *Directory) string {
return dag.
JxReleaseVersion().
NextVersion(ctx, gitDirectory)
}
tag() 🔗
Tag tags the current commit with the next version - and pushes the tag to the remote repository. It returns the next version.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
gitDirectory | Directory ! | - | git directory to include in the container. |
fetchTags | Boolean | false | If true, fetch tags from the remote repository before detecting the previous version. |
previousVersionStrategy | String | "auto" | strategy to use to read the previous version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
nextVersionStrategy | String | "auto" | strategy to use to calculate the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
outputFormat | String | "{{.Major}}.{{.Minor}}.{{.Patch}}" | output format of the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc. |
tagPrefix | String | "v" | prefix for the new tag - prefixed before the output. |
gitToken | Secret ! | - | git token to use for authentication when pushing the tag to the remote. |
gitUser | String | "jx-release-version" | name of the author/committer used to create the tag. |
gitEmail | String | "jx-release-version@jenkins-x.io" | email of the author/committer used to create the tag. |
pushTag | Boolean | true | if true, push the tag to the remote. |
Example
func (m *myModule) example(ctx context.Context, gitDirectory *Directory, gitToken *Secret) string {
return dag.
JxReleaseVersion().
Tag(ctx, gitDirectory, gitToken)
}