Dagger
Search

image-updater

No long description provided.

Installation

dagger install github.com/matipan/daggerverse/image-updater@0683285f0e08f2bc642117f35d1061b6731e6056

Entrypoint

Return Type
ImageUpdater
Example
dagger -m github.com/matipan/daggerverse/image-updater@0683285f0e08f2bc642117f35d1061b6731e6056 call \
func (m *myModule) example() *ImageUpdater  {
	return dag.
			ImageUpdater()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
repoString !-No description provided
branchString !-No description provided
deployFilepathString !-No description provided
imageUrlString !-No description provided
gitUserString !-No description provided
gitEmailString !-No description provided
gitPasswordSecret !-No description provided
forceWithLeaseBoolean !-No description provided
Example
dagger -m github.com/matipan/daggerverse/image-updater@0683285f0e08f2bc642117f35d1061b6731e6056 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 boolean
func (m *myModule) example(ctx context.Context, repo string, branch string, deployFilepath string, imageUrl string, gitUser string, gitEmail string, gitPassword *Secret, forceWithLease bool)   {
	return dag.
			ImageUpdater().
			Update(ctx, repo, branch, deployFilepath, imageUrl, gitUser, gitEmail, gitPassword, forceWithLease)
}
@function
async def example(repo: str, branch: str, deploy_filepath: str, image_url: str, git_user: str, git_email: str, git_password: dagger.Secret, force_with_lease: bool) -> None:
	return await (
		dag.image_updater()
		.update(repo, branch, deploy_filepath, image_url, git_user, git_email, git_password, force_with_lease)
	)
@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)
}