Dagger
Search

Dragee

No long description provided.

Installation

dagger install github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6

Entrypoint

Return Type
Dragee
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
func (m *myModule) example() *Dragee  {
	return dag.
			Dragee()
}
@function
def example() -> dag.Dragee:
	return (
		dag.dragee()
	)
@func()
example(): Dragee {
	return dag
		.dragee()
}

Types

Dragee 🔗

bunContainer() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
bunVersionString !"latest"No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 bun-container --bun-version string
func (m *myModule) example(bunVersion string) *Container  {
	return dag.
			Dragee().
			BunContainer(bunVersion)
}
@function
def example(bun_version: str) -> dagger.Container:
	return (
		dag.dragee()
		.bun_container(bun_version)
	)
@func()
example(bunVersion: string): Container {
	return dag
		.dragee()
		.bunContainer(bunVersion)
}

nodeContainer() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
nodeVersionString !"current-alpine3.21"No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 node-container --node-version string
func (m *myModule) example(nodeVersion string) *Container  {
	return dag.
			Dragee().
			NodeContainer(nodeVersion)
}
@function
def example(node_version: str) -> dagger.Container:
	return (
		dag.dragee()
		.node_container(node_version)
	)
@func()
example(nodeVersion: string): Container {
	return dag
		.dragee()
		.nodeContainer(nodeVersion)
}

installDependencies() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 install-dependencies --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Dragee().
			InstallDependencies(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.dragee()
		.install_dependencies(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.dragee()
		.installDependencies(source)
}

mountAppWith() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 mount-app-with --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Dragee().
			MountAppWith(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.dragee()
		.mount_app_with(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.dragee()
		.mountAppWith(source)
}

test() 🔗

It runs the tests of the project

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
appContainer !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 test --app IMAGE:TAG
func (m *myModule) example(app *Container) *Container  {
	return dag.
			Dragee().
			Test(app)
}
@function
def example(app: dagger.Container) -> dagger.Container:
	return (
		dag.dragee()
		.test(app)
	)
@func()
example(app: Container): Container {
	return dag
		.dragee()
		.test(app)
}

lint() 🔗

This function runs the lint of the project

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
appContainer !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 lint --app IMAGE:TAG
func (m *myModule) example(app *Container) *Container  {
	return dag.
			Dragee().
			Lint(app)
}
@function
def example(app: dagger.Container) -> dagger.Container:
	return (
		dag.dragee()
		.lint(app)
	)
@func()
example(app: Container): Container {
	return dag
		.dragee()
		.lint(app)
}

build() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 build --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Dragee().
			Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.dragee()
		.build(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.dragee()
		.build(source)
}

onPullRequest() 🔗

This function runs the lint and test of the project on a pull request trigger

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
urlString !-- the repository url (it can either be a http or a git url)
branchString !"main"- the branch to use - defaults to `main`
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 on-pull-request --url string --branch string
func (m *myModule) example(ctx context.Context, url string, branch string)   {
	return dag.
			Dragee().
			OnPullRequest(ctx, url, branch)
}
@function
async def example(url: str, branch: str) -> None:
	return await (
		dag.dragee()
		.on_pull_request(url, branch)
	)
@func()
async example(url: string, branch: string): Promise<void> {
	return dag
		.dragee()
		.onPullRequest(url, branch)
}

lintAndTest() 🔗

This function runs the lint and test of the project (used by on_pull_request but can be used to test local changes)

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-the source directory
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 lint-and-test --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Dragee().
			LintAndTest(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.dragee()
		.lint_and_test(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.dragee()
		.lintAndTest(source)
}

onPublish() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
npmTokenSecret !-No description provided
sourceDirectory -No description provided
gitUrlString -No description provided
branchString -No description provided
tagString -No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 on-publish --npm-token env:MYSECRET
func (m *myModule) example(ctx context.Context, npmToken *Secret)   {
	return dag.
			Dragee().
			OnPublish(ctx, npmToken)
}
@function
async def example(npm_token: dagger.Secret) -> None:
	return await (
		dag.dragee()
		.on_publish(npm_token)
	)
@func()
async example(npmToken: Secret): Promise<void> {
	return dag
		.dragee()
		.onPublish(npmToken)
}

publish() 🔗

This function can be use to publish the project on a release trigger. This function is mandatory due to how the asserters are used by dragee’s cli and cannot be built to js files for the moment.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
npmTokenSecret !-- the npm token to use to publish the project
sourceDirectory -- the source directory
gitUrlString -- the git url of the repository
branchString -- the branch to use
tagString -- the tag version to update the project to
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 publish --npm-token env:MYSECRET
func (m *myModule) example(ctx context.Context, npmToken *Secret)   {
	return dag.
			Dragee().
			Publish(ctx, npmToken)
}
@function
async def example(npm_token: dagger.Secret) -> None:
	return await (
		dag.dragee()
		.publish(npm_token)
	)
@func()
async example(npmToken: Secret): Promise<void> {
	return dag
		.dragee()
		.publish(npmToken)
}

bumpAndPublish() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
tagString !-No description provided
sourceDirectory !-No description provided
npmTokenSecret !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 bump-and-publish --tag string --source DIR_PATH --npm-token env:MYSECRET
func (m *myModule) example(tag string, source *Directory, npmToken *Secret) *Container  {
	return dag.
			Dragee().
			BumpAndPublish(tag, source, npmToken)
}
@function
def example(tag: str, source: dagger.Directory, npm_token: dagger.Secret) -> dagger.Container:
	return (
		dag.dragee()
		.bump_and_publish(tag, source, npm_token)
	)
@func()
example(tag: string, source: Directory, npmToken: Secret): Container {
	return dag
		.dragee()
		.bumpAndPublish(tag, source, npmToken)
}

publishApp() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
appContainer !-No description provided
npmTokenSecret !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 publish-app --app IMAGE:TAG --npm-token env:MYSECRET
func (m *myModule) example(app *Container, npmToken *Secret) *Container  {
	return dag.
			Dragee().
			PublishApp(app, npmToken)
}
@function
def example(app: dagger.Container, npm_token: dagger.Secret) -> dagger.Container:
	return (
		dag.dragee()
		.publish_app(app, npm_token)
	)
@func()
example(app: Container, npmToken: Secret): Container {
	return dag
		.dragee()
		.publishApp(app, npmToken)
}

updateAppVersion() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
sourceDirectory !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 update-app-version --version string --source DIR_PATH
func (m *myModule) example(version string, source *Directory) *Container  {
	return dag.
			Dragee().
			UpdateAppVersion(version, source)
}
@function
def example(version: str, source: dagger.Directory) -> dagger.Container:
	return (
		dag.dragee()
		.update_app_version(version, source)
	)
@func()
example(version: string, source: Directory): Container {
	return dag
		.dragee()
		.updateAppVersion(version, source)
}

getLatestTag() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
urlString !-No description provided
Example
dagger -m github.com/dragee-io/daggerverse@b5516247809d5ef9f22d65aa082ffe808cab89b6 call \
 get-latest-tag --url string
func (m *myModule) example(ctx context.Context, url string) string  {
	return dag.
			Dragee().
			GetLatestTag(ctx, url)
}
@function
async def example(url: str) -> str:
	return await (
		dag.dragee()
		.get_latest_tag(url)
	)
@func()
async example(url: string): Promise<string> {
	return dag
		.dragee()
		.getLatestTag(url)
}