release
No long description provided.
Installation
dagger install github.com/dagger/dagger/release@51190416b524b2eb72bc55427e29b32255127921
Entrypoint
Return Type
Release !
Arguments
Name | Type | Description |
---|---|---|
gitTag | String | No description provided |
gitCommit | String | No description provided |
gitDir | Directory | No description provided |
unixInstallScript | File | No description provided |
windowsInstallScript | File | No description provided |
getRefScript | File | No description provided |
changeNotes | Directory | 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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
version | String | - | No description provided |
tag | String | - | No description provided |
githubOrgName | String ! | - | No description provided |
githubToken | Secret ! | - | No description provided |
goreleaserKey | Secret ! | - | No description provided |
awsAccessKeyId | Secret ! | - | No description provided |
awsSecretAccessKey | Secret ! | - | No description provided |
awsRegion | Secret ! | - | No description provided |
awsBucket | Secret ! | - | No description provided |
artefactsFqdn | String ! | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | - | Image target to push to |
tag | [String ! ] ! | - | List of tags to use |
dryRun | Boolean | - | No description provided |
registry | String | - | No description provided |
registryUsername | String | - | No description provided |
registryPassword | Secret | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
dryRun | Boolean | - | No description provided |
pypiRepo | String | - | No description provided |
pypiToken | Secret | - | No description provided |
gitRepoSource | String | "https://github.com/dagger/dagger.git" | No description provided |
githubToken | Secret | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
source | String | - | Source repository URL |
dest | String | - | Destination repository URL |
sourceTag | String | - | Tag or reference in the source repository |
destTag | String | - | Tag or reference in the destination repository |
sourcePath | String | - | Path within the source repository to publish |
sourceFilter | String | - | Filter to apply to the source files |
sourceEnv | Container | - | Container environment for source operations |
username | String | - | Git username for commits |
String | - | Git email for commits | |
githubToken | Secret | - | GitHub token for authentication |
dryRun | Boolean | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
tag | String | - | Tag for the GitHub release |
notes | File | - | File containing release notes |
gitRepo | String | - | GitHub repository URL |
githubToken | Secret | - | GitHub token for authentication |
dryRun | Boolean | - | 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()
}