Dagger
Search

release

No long description provided.

Installation

dagger install github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921

Entrypoint

Return Type
Release !
Arguments
NameTypeDescription
gitTagString No description provided
gitCommitString No description provided
gitDirDirectory No description provided
unixInstallScriptFile No description provided
windowsInstallScriptFile No description provided
getRefScriptFile No description provided
changeNotesDirectory No description provided
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
func (m *myModule) example() *Release  {
	return dag.
			Release()
}
@function
def example() -> dag.Release:
	return (
		dag.release()
	)
@func()
example(): Release {
	return dag
		.release()
}

Types

Release 🔗

lint() 🔗

Lint scripts files

Return Type
Void !
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 lint
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			Lint(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.lint()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.lint()
}

test() 🔗

Test the release process

Return Type
Void !
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 test
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			Test(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.test()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.test()
}

testPublishCli() 🔗

Verify that the CLI can be published, without actually publishing anything

Return Type
Void !
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 test-publish-cli
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			TestPublishCli(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.test_publish_cli()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.testPublishCli()
}

goreleaser() 🔗

Build a Goreleaser environment

Return Type
Container !
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 goreleaser
func (m *myModule) example() *Container  {
	return dag.
			Release().
			Goreleaser()
}
@function
def example() -> dagger.Container:
	return (
		dag.release()
		.goreleaser()
	)
@func()
example(): Container {
	return dag
		.release()
		.goreleaser()
}

publishCli() 🔗

Publish the CLI using GoReleaser

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -stopgap:
versionString -No description provided
tagString -No description provided
githubOrgNameString !-No description provided
githubTokenSecret !-No description provided
goreleaserKeySecret !-No description provided
awsAccessKeyIdSecret !-No description provided
awsSecretAccessKeySecret !-No description provided
awsRegionSecret !-No description provided
awsBucketSecret !-No description provided
artefactsFqdnString !-No description provided
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 publish-cli --github-org-name string --github-token env:MYSECRET --goreleaser-key env:MYSECRET --aws-access-key-id env:MYSECRET --aws-secret-access-key env:MYSECRET --aws-region env:MYSECRET --aws-bucket env:MYSECRET --artefacts-fqdn string
func (m *myModule) example(ctx context.Context, githubOrgName string, githubToken *Secret, goreleaserKey *Secret, awsAccessKeyId *Secret, awsSecretAccessKey *Secret, awsRegion *Secret, awsBucket *Secret, artefactsFqdn string)   {
	return dag.
			Release().
			PublishCli(ctxgithubOrgName, githubToken, goreleaserKey, awsAccessKeyId, awsSecretAccessKey, awsRegion, awsBucket, artefactsFqdn)
}
@function
async def example(github_org_name: str, github_token: dagger.Secret, goreleaser_key: dagger.Secret, aws_access_key_id: dagger.Secret, aws_secret_access_key: dagger.Secret, aws_region: dagger.Secret, aws_bucket: dagger.Secret, artefacts_fqdn: str) -> None:
	return await (
		dag.release()
		.publish_cli(github_org_name, github_token, goreleaser_key, aws_access_key_id, aws_secret_access_key, aws_region, aws_bucket, artefacts_fqdn)
	)
@func()
async example(githubOrgName: string, githubToken: Secret, goreleaserKey: Secret, awsAccessKeyId: Secret, awsSecretAccessKey: Secret, awsRegion: Secret, awsBucket: Secret, artefactsFqdn: string): Promise<void> {
	return dag
		.release()
		.publishCli(githubOrgName, githubToken, goreleaserKey, awsAccessKeyId, awsSecretAccessKey, awsRegion, awsBucket, artefactsFqdn)
}

publishEngine() 🔗

Publish all engine images to a registry

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
imageString !-Image target to push to
tag[String ! ] !-List of tags to use
dryRunBoolean -No description provided
registryString -No description provided
registryUsernameString -No description provided
registryPasswordSecret -No description provided
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 publish-engine --image string --tag string1 --tag string2
func (m *myModule) example(ctx context.Context, image string, tag []string)   {
	return dag.
			Release().
			PublishEngine(ctx, image, tag)
}
@function
async def example(image: str, tag: List[str]) -> None:
	return await (
		dag.release()
		.publish_engine(image, tag)
	)
@func()
async example(image: string, tag: string[]): Promise<void> {
	return dag
		.release()
		.publishEngine(image, tag)
}

publishPythonSdk() 🔗

Publish the Python SDK FIXME: move this to ../sdk/python/dev

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
dryRunBoolean -No description provided
pypiRepoString -No description provided
pypiTokenSecret -No description provided
gitRepoSourceString "https://github.com/dagger/dagger.git"No description provided
githubTokenSecret -No description provided
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 publish-python-sdk
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			PublishPythonSdk(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.publish_python_sdk()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.publishPythonSdk()
}

gitPublish() 🔗

Publish an SDK to a git repository

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceString -Source repository URL
destString -Destination repository URL
sourceTagString -Tag or reference in the source repository
destTagString -Tag or reference in the destination repository
sourcePathString -Path within the source repository to publish
sourceFilterString -Filter to apply to the source files
sourceEnvContainer -Container environment for source operations
usernameString -Git username for commits
emailString -Git email for commits
githubTokenSecret -GitHub token for authentication
dryRunBoolean -Whether to perform a dry run without pushing changes
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 git-publish
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			GitPublish(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.git_publish()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.gitPublish()
}

githubRelease() 🔗

Publish a Github release

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
tagString -Tag for the GitHub release
notesFile -File containing release notes
gitRepoString -GitHub repository URL
githubTokenSecret -GitHub token for authentication
dryRunBoolean -Whether to perform a dry run without creating the release
Example
dagger -m github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921 call \
 github-release
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Release().
			GithubRelease(ctx)
}
@function
async def example() -> None:
	return await (
		dag.release()
		.github_release()
	)
@func()
async example(): Promise<void> {
	return dag
		.release()
		.githubRelease()
}