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

Entrypoint

Return Type
JxReleaseVersion !
Arguments
NameTypeDefault ValueDescription
imageRepositoryString "ghcr.io/jenkins-x/jx-release-version"image repository of jx-release-version.
imageTagString "2.7.8@sha256:4230f7cf1067e91c966f7a23c3731f69be440677353dbef4f773417b03af0b0a"image tag of jx-release-version. See https://github.com/jenkins-x-plugins/jx-release-version/releases for available tags. Run `crane digest ghcr.io/jenkins-x/jx-release-version:2.7.8` to get the digest.
logLevelString "info"log level to use for the command.
Example
dagger -m github.com/vbehar/daggerverse/jx-release-version@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f 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)
}