renovate
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/act3-ai/dagger/renovate@v0.1.4
Entrypoint
Return Type
Renovate !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
project | String ! | - | Gitlab 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@a3e8853b157abdd29279c9dac76d26974c11b89c 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
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@a3e8853b157abdd29279c9dac76d26974c11b89c 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
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@a3e8853b157abdd29279c9dac76d26974c11b89c 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 Gitlab repository
Return Type
String !
Example
dagger -m github.com/act3-ai/dagger/renovate@a3e8853b157abdd29279c9dac76d26974c11b89c 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()
}