replicated-scribe
v1.0.0
Published
update a replicated yaml's docker tag(s) in a GitHub repository
Downloads
12
Readme
Replicated Scribe
Built to update docker tags in a replicated yaml programmatically; most likely from the context of CI post-build.
Q. Why not just make a node script? A.: The prospect of maintaining a node script across 20+ repos that is subject to change is yuck city. Plus there's not a great way to test that mess.
CLI
Note: the a Github API Token providing write access should be set to the environment variable
GITHUB_API_TOKEN
replicated-scribe updateTag --repo=repoSlug --filePath=./path/to/yaml --image=anDockerImage --tag=newTag --branch=branchName
Allows for CI builds to update a replicated.yaml in a branch to make use of a newly available Docker image.
repo
- the slug should be in the form ofuserName/repoName
branch
- the branch name to push the change tofilePath
- the path (relative to the repo) to thereplicated.yaml
fileimage
- the Docker image (as specified) in the yaml filetag
- the new tag to apply (this is under aversion
property in the yaml)
branch
defaults to "update-docker-image"
and filePath
defaults to "./replicated.yaml"
when those arguments are not provided.
The result of this command, when successful, will be a commit to the branch on the specified repository with the version
property changed to the new tag value for any Docker image matching the image
argument.