Dagger
Search

releaser

A module that encodes the official release process of the Dagger Engine

Installation

dagger install github.com/helderco/dagger/releaser@87a14a9f85ddcacbd7ce0c98e8a8a6aa51e958c7

Entrypoint

Return Type
Releaser !
Arguments
NameTypeDefault ValueDescription
changeNotesDirDirectory -No description provided
Example
dagger -m github.com/helderco/dagger/releaser@87a14a9f85ddcacbd7ce0c98e8a8a6aa51e958c7 call \
func (m *myModule) example() *Releaser  {
	return dag.
			Releaser()
}
@function
def example() -> dag.Releaser:
	return (
		dag.releaser()
	)
@func()
example(): Releaser {
	return dag
		.releaser()
}

Types

Releaser 🔗

changeNotes() 🔗

Lookup the change notes file for the given component and version

Return Type
File !
Arguments
NameTypeDefault ValueDescription
componentString !-The component to look up change notes for Example: "sdk/php"
versionString !-The version to look up change notes for
Example
dagger -m github.com/helderco/dagger/releaser@87a14a9f85ddcacbd7ce0c98e8a8a6aa51e958c7 call \
 change-notes --component string --version string
func (m *myModule) example(component string, version string) *File  {
	return dag.
			Releaser().
			ChangeNotes(component, version)
}
@function
def example(component: str, version: str) -> dagger.File:
	return (
		dag.releaser()
		.change_notes(component, version)
	)
@func()
example(component: string, version: string): File {
	return dag
		.releaser()
		.changeNotes(component, version)
}

githubRelease() 🔗

Publish a Github release

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
repositoryString !-GitHub repository URL
tagString !-Tag for the GitHub release eg. sdk/typescript/v0.14.0
targetString !-The target for the release eg. 🤷‍♂️ FIXME: what's the difference with 'tag'? Who knows, it wasn't documented - SH Nov 2024
notesFile -File containing release notes
tokenSecret -GitHub token for authentication
dryRunBoolean -Whether to perform a dry run without creating the release
Example
dagger -m github.com/helderco/dagger/releaser@87a14a9f85ddcacbd7ce0c98e8a8a6aa51e958c7 call \
 github-release --repository string --tag string --target string
func (m *myModule) example(ctx context.Context, repository string, tag string, target string)   {
	return dag.
			Releaser().
			GithubRelease(ctx, repository, tag, target)
}
@function
async def example(repository: str, tag: str, target: str) -> None:
	return await (
		dag.releaser()
		.github_release(repository, tag, target)
	)
@func()
async example(repository: string, tag: string, target: string): Promise<void> {
	return dag
		.releaser()
		.githubRelease(repository, tag, target)
}