image-updater
No long description provided.
Installation
dagger install github.com/matipan/daggerverse/image-updater@517b46809bbfade359c4f647f2392fb6c139f655Entrypoint
Return Type
ImageUpdater Example
dagger -m github.com/matipan/daggerverse/image-updater@517b46809bbfade359c4f647f2392fb6c139f655 call \
func (m *MyModule) Example() *dagger.ImageUpdater {
return dag.
Imageupdater()
}@function
def example() -> dagger.ImageUpdater:
return (
dag.image_updater()
)@func()
example(): ImageUpdater {
return dag
.imageUpdater()
}Types
ImageUpdater 🔗
update() 🔗
Update updates the kubernetes deployment file in the specified repository with the new image URL. NOTE: this pushes a commit to your repository so make sure that you either don’t have a cyclic workflow trigger or that you use a token that prevents this from happening. +optional forceWithLease
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | - | No description provided |
| branch | String ! | - | No description provided |
| deployFilepath | String ! | - | No description provided |
| imageUrl | String ! | - | No description provided |
| gitUser | String ! | - | No description provided |
| gitEmail | String ! | - | No description provided |
| gitPassword | Secret ! | - | No description provided |
| forceWithLease | Boolean ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/image-updater@517b46809bbfade359c4f647f2392fb6c139f655 call \
update --repo string --branch string --deploy-filepath string --image-url string --git-user string --git-email string --git-password env:MYSECRET --force-with-lease booleanfunc (m *MyModule) Example(ctx context.Context, repo string, branch string, deployFilepath string, imageUrl string, gitUser string, gitEmail string, gitPassword *dagger.Secret, forceWithLease bool) {
return dag.
Imageupdater().
Update(ctx, repo, branch, deployFilepath, imageUrl, gitUser, gitEmail, gitPassword, forceWithLease)
}@function
async def example(repo: str, branch: str, deployfilepath: str, imageurl: str, gituser: str, gitemail: str, gitpassword: dagger.Secret, forcewithlease: bool) -> None:
return await (
dag.image_updater()
.update(repo, branch, deployfilepath, imageurl, gituser, gitemail, gitpassword, forcewithlease)
)@func()
async example(repo: string, branch: string, deployFilepath: string, imageUrl: string, gitUser: string, gitEmail: string, gitPassword: Secret, forceWithLease: boolean): Promise<void> {
return dag
.imageUpdater()
.update(repo, branch, deployFilepath, imageUrl, gitUser, gitEmail, gitPassword, forceWithLease)
}