replicated-scribe

1.0.0 • Public • Published

Replicated Scribe

Built to update docker tags in a replicated yaml programmatically; most likely from the context of CI post-build.

Build Status Coverage Status Conventional Commits

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 of userName/repoName
  • branch - the branch name to push the change to
  • filePath - the path (relative to the repo) to the replicated.yaml file
  • image - the Docker image (as specified) in the yaml file
  • tag - the new tag to apply (this is under a version 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i replicated-scribe

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • arobson