Sign inSign up

varkal/yaml-commiter

By varkal

•Updated over 4 years ago

Commit change to YAML file

Image
1

1.3K

varkal/yaml-commiter repository overview

⁠YAML-Commiter

Using ArgoCD⁠ as my CD tool and respecting their best practices about separating k8s manifests from source code, I often need to update a YAML file in another Git repo during my CI pipelines to update the version of my image and trigger a deployment

That's the purpose of this docker image

⁠Parameters

  • --url: [Mandatory] The URL of the repository to clone
  • --name: [Mandatory] The name of the folder where the repo will be clone (should be the last part of the url)
  • --key: [Mandatory] The key to update in the yaml
  • --value: [Mandatory] The value to set on the key
  • --user: [Optional: default is YamlCommiter] commiter name
  • --email: [Optional: default is [email protected]⁠] commiter email

⁠Example

docker run varkal/yaml-committer --url https://github.com/myRepo --name myRepo --key backVersion --value 1.2.3 --user "Varkal" --email "[email protected]" --file my_file.yaml

Tag summary

Content type

Image

Digest

Size

14.5 MB

Last updated

about 5 years ago

docker pull varkal/yaml-commiter