Dagger
Search

renovate

This will attempt create Pull/Merge Requests fodepending on platform provided, in ex. github.
Example
#!/bin/bash

# Call renovate to check for updates on a github repo and create PRs if found

dagger -m github.com/act3-ai/dagger/renovate call \
--platform=github \
--endpoint-url=http://github.com \
--project=act3-ai/dagger \
--token=env:GITHUB_TOKEN \
  update

# Call renovate to check for updates on a github repo using only a custom.regex manager to find updates.
# Also creates PRs using signed commits from author provided.
dagger -m github.com/act3-ai/dagger/renovate call \
--platform=github \
--endpoint-url=http://github.com \
--project=act3-ai/dagger \
--author="$GITHUB_USER" \
--email="$GITHUB_EMAIL" \
--token=env:GITHUB_TOKEN \
--git-private-key=env:GITHUB_PRIVATE_KEY \
--enabled-managers="custom.regex" \
  update
no available example in current language
no available example in current language
no available example in current language

Installation

dagger install github.com/act3-ai/dagger/renovate@v0.1.5

Entrypoint

Return Type
Renovate !
Arguments
NameTypeDefault ValueDescription
projectString !-repo project slug
tokenSecret !-Gitlab API token to the repo being renovated
endpointUrlString !-Endpoint URL for example https://hostname/api/v4
platformString "gitlab"set platform for renovate to use. in ex. "gitlab"
baseContainer -renovate base image
gitPrivateKeySecret -private git key for signing commits note: Renovate does not support password protected keys
authorString "RenovateBot"git author for creating branches/commits
emailString "bot@example.com"git email for creating branches/commits
enabledManagersString ""No description provided
Example
dagger -m github.com/act3-ai/dagger/renovate@b3cf093942f2be7e1035418f511c078acf4dbe69 call \
 --project string --token env:MYSECRET --endpoint-url string
func (m *MyModule) Example(project string, token *dagger.Secret, endpointUrl string) *dagger.Renovate  {
	return dag.
			Renovate(project, token, endpointUrl)
}
@function
def example(project: str, token: dagger.Secret, endpoint_url: str, ) -> dagger.Renovate:
	return (
		dag.renovate(project, token, endpoint_url)
	)
@func()
example(project: string, token: Secret, endpointUrl: string, ): Renovate {
	return dag
		.renovate(project, token, endpointUrl)
}

Types

Renovate 🔗

Renovate tasks

withRegistryAuth() 🔗

Add authentication to a OCI registry

Return Type
Renovate !
Arguments
NameTypeDefault ValueDescription
hostnameString !-registry's hostname
usernameString !-username in registry
passwordSecret !-password or token for registry
Example
dagger -m github.com/act3-ai/dagger/renovate@b3cf093942f2be7e1035418f511c078acf4dbe69 call \
 --project string --token env:MYSECRET --endpoint-url string with-registry-auth --hostname string --username string --password env:MYSECRET
func (m *MyModule) Example(project string, token *dagger.Secret, endpointUrl string, hostname string, username string, password *dagger.Secret) *dagger.Renovate  {
	return dag.
			Renovate(project, token, endpointUrl).
			WithRegistryAuth(hostname, username, password)
}
@function
def example(project: str, token: dagger.Secret, endpoint_url: str, hostname: str, username: str, password: dagger.Secret) -> dagger.Renovate:
	return (
		dag.renovate(project, token, endpoint_url)
		.with_registry_auth(hostname, username, password)
	)
@func()
example(project: string, token: Secret, endpointUrl: string, hostname: string, username: string, password: Secret): Renovate {
	return dag
		.renovate(project, token, endpointUrl)
		.withRegistryAuth(hostname, username, password)
}

withSecret() 🔗

Add a renovate secret. Can we referenced as “{{ secrets.MY_SECRET_NAME }}” in other renovate config.

Return Type
Renovate !
Arguments
NameTypeDefault ValueDescription
nameString !-name of the secret
valueSecret !-value of the secret
Example
dagger -m github.com/act3-ai/dagger/renovate@b3cf093942f2be7e1035418f511c078acf4dbe69 call \
 --project string --token env:MYSECRET --endpoint-url string with-secret --name string --value env:MYSECRET
func (m *MyModule) Example(project string, token *dagger.Secret, endpointUrl string, name string, value *dagger.Secret) *dagger.Renovate  {
	return dag.
			Renovate(project, token, endpointUrl).
			WithSecret(name, value)
}
@function
def example(project: str, token: dagger.Secret, endpoint_url: str, name: str, value: dagger.Secret) -> dagger.Renovate:
	return (
		dag.renovate(project, token, endpoint_url)
		.with_secret(name, value)
	)
@func()
example(project: string, token: Secret, endpointUrl: string, name: string, value: Secret): Renovate {
	return dag
		.renovate(project, token, endpointUrl)
		.withSecret(name, value)
}

update() 🔗

Run renovate to update dependencies on the remote repository

Return Type
String !
Example
dagger -m github.com/act3-ai/dagger/renovate@b3cf093942f2be7e1035418f511c078acf4dbe69 call \
 --project string --token env:MYSECRET --endpoint-url string update
func (m *MyModule) Example(ctx context.Context, project string, token *dagger.Secret, endpointUrl string) string  {
	return dag.
			Renovate(project, token, endpointUrl).
			Update(ctx)
}
@function
async def example(project: str, token: dagger.Secret, endpoint_url: str, ) -> str:
	return await (
		dag.renovate(project, token, endpoint_url)
		.update()
	)
@func()
async example(project: string, token: Secret, endpointUrl: string, ): Promise<string> {
	return dag
		.renovate(project, token, endpointUrl)
		.update()
}