Dagger
Search

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.10.0

Entrypoint

Return Type
JxReleaseVersion !
Arguments
NameTypeDescription
imageRepositoryString image repository of jx-release-version.
imageTagString image tag of jx-release-version. See https://github.com/jenkins-x-plugins/jx-release-version/releases for available tags.
logLevelString log level to use for the command.
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
func (m *myModule) example() *JxReleaseVersion  {
	return dag.
			JxReleaseVersion()
}
@function
def example() -> dag.JxReleaseVersion:
	return (
		dag.jx_release_version()
	)
@func()
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
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 image-repository
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			JxReleaseVersion().
			ImageRepository(ctx)
}
@function
async def example() -> str:
	return await (
		dag.jx_release_version()
		.image_repository()
	)
@func()
async example(): Promise<string> {
	return dag
		.jxReleaseVersion()
		.imageRepository()
}

imageTag() 🔗

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 image-tag
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			JxReleaseVersion().
			ImageTag(ctx)
}
@function
async def example() -> str:
	return await (
		dag.jx_release_version()
		.image_tag()
	)
@func()
async example(): Promise<string> {
	return dag
		.jxReleaseVersion()
		.imageTag()
}

logLevel() 🔗

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 log-level
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			JxReleaseVersion().
			LogLevel(ctx)
}
@function
async def example() -> str:
	return await (
		dag.jx_release_version()
		.log_level()
	)
@func()
async example(): Promise<string> {
	return dag
		.jxReleaseVersion()
		.logLevel()
}

container() 🔗

Container returns a container with jx-release-version installed.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
gitDirectoryDirectory -git directory to include in the container.
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			JxReleaseVersion().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.jx_release_version()
		.container()
	)
@func()
example(): Container {
	return dag
		.jxReleaseVersion()
		.container()
}

nextVersion() 🔗

NextVersion returns the next version of the given git repository.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
gitDirectoryDirectory !-git directory to include in the container.
fetchTagsBoolean falseIf true, fetch tags from the remote repository before detecting the previous version.
previousVersionStrategyString "auto"strategy to use to read the previous version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
nextVersionStrategyString "auto"strategy to use to calculate the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
outputFormatString "{{.Major}}.{{.Minor}}.{{.Patch}}"output format of the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 next-version --git-directory DIR_PATH
func (m *myModule) example(ctx context.Context, gitDirectory *Directory) string  {
	return dag.
			JxReleaseVersion().
			NextVersion(ctx, gitDirectory)
}
@function
async def example(git_directory: dagger.Directory) -> str:
	return await (
		dag.jx_release_version()
		.next_version(git_directory)
	)
@func()
async example(gitDirectory: Directory): Promise<string> {
	return dag
		.jxReleaseVersion()
		.nextVersion(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
NameTypeDefault ValueDescription
gitDirectoryDirectory !-git directory to include in the container.
fetchTagsBoolean falseIf true, fetch tags from the remote repository before detecting the previous version.
previousVersionStrategyString "auto"strategy to use to read the previous version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
nextVersionStrategyString "auto"strategy to use to calculate the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
outputFormatString "{{.Major}}.{{.Minor}}.{{.Patch}}"output format of the next version. See https://github.com/jenkins-x-plugins/jx-release-version for doc.
tagPrefixString "v"prefix for the new tag - prefixed before the output.
gitTokenSecret !-git token to use for authentication when pushing the tag to the remote.
gitUserString "jx-release-version"name of the author/committer used to create the tag.
gitEmailString "jx-release-version@jenkins-x.io"email of the author/committer used to create the tag.
pushTagBoolean trueif true, push the tag to the remote.
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@eb093e6d7e210474167957615e3f06f2bc8fd7d4 call \
 tag --git-directory DIR_PATH --git-token env:MYSECRET
func (m *myModule) example(ctx context.Context, gitDirectory *Directory, gitToken *Secret) string  {
	return dag.
			JxReleaseVersion().
			Tag(ctx, gitDirectory, gitToken)
}
@function
async def example(git_directory: dagger.Directory, git_token: dagger.Secret) -> str:
	return await (
		dag.jx_release_version()
		.tag(git_directory, git_token)
	)
@func()
async example(gitDirectory: Directory, gitToken: Secret): Promise<string> {
	return dag
		.jxReleaseVersion()
		.tag(gitDirectory, gitToken)
}