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" \
  updateno available example in current languageno available example in current languageno available example in current languageInstallation
dagger install github.com/act3-ai/dagger/renovate@v0.1.6Entrypoint
Return Type
Renovate !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| project | String ! | - | repo project slug | 
| token | Secret ! | - | Gitlab API token to the repo being renovated | 
| endpointUrl | String ! | - | Endpoint URL for example https://hostname/api/v4 | 
| platform | String | "gitlab" | set platform for renovate to use. in ex. "gitlab" | 
| base | Container | - | renovate base image | 
| gitPrivateKey | Secret | - | private git key for signing commits note: Renovate does not support password protected keys | 
| author | String | "RenovateBot" | git author for creating branches/commits | 
| String | "bot@example.com" | git email for creating branches/commits | |
| enabledManagers | String | "" | No description provided | 
Example
dagger -m github.com/act3-ai/dagger/renovate@3e3cb1da6586fbb9f693797df1d214b3f201c18a call \
 --project string --token env:MYSECRET --endpoint-url stringfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| hostname | String ! | - | registry's hostname | 
| username | String ! | - | username in registry | 
| password | Secret ! | - | password or token for registry | 
Example
dagger -m github.com/act3-ai/dagger/renovate@3e3cb1da6586fbb9f693797df1d214b3f201c18a call \
 --project string --token env:MYSECRET --endpoint-url string with-registry-auth --hostname string --username string --password env:MYSECRETfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| name | String ! | - | name of the secret | 
| value | Secret ! | - | value of the secret | 
Example
dagger -m github.com/act3-ai/dagger/renovate@3e3cb1da6586fbb9f693797df1d214b3f201c18a call \
 --project string --token env:MYSECRET --endpoint-url string with-secret --name string --value env:MYSECRETfunc (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@3e3cb1da6586fbb9f693797df1d214b3f201c18a call \
 --project string --token env:MYSECRET --endpoint-url string updatefunc (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()
}