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@642eac81af3dc4fc177fad52394209eb8edaf555
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 |
base | Container | - | renovate base image |
Example
dagger -m github.com/act3-ai/dagger/renovate@642eac81af3dc4fc177fad52394209eb8edaf555 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@642eac81af3dc4fc177fad52394209eb8edaf555 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@642eac81af3dc4fc177fad52394209eb8edaf555 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@642eac81af3dc4fc177fad52394209eb8edaf555 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()
}