Skip to content

updatecli/policies

Repository files navigation

README

Updatecli

updatecli:matrix GitHub GitHub Workflow Status

These policies are a collection of official Updatecli bundles that automate common update tasks (Golang, npm, Docker, …​). Policies are published to the GitHub Container Registry under ghcr.io/updatecli/policies and follow semantic versioning.

Policies

A list of all available policies: Full policy list

Quick start

Inspect a published policy manifest:

updatecli manifest show ghcr.io/updatecli/policies/autodiscovery/golang:latest

Dry-run (show what would change):

updatecli diff ghcr.io/updatecli/policies/autodiscovery/golang:latest

Apply a policy:

updatecli apply --config ghcr.io/updatecli/policies/autodiscovery/golang:latest

Compose multiple policies from a local compose file:

  • Create updatecli-compose.yaml (example below).

  • Run:

updatecli compose apply --config ./updatecli-compose.yaml
updatecli-compose.yaml
policies:
  - policy: "ghcr.io/updatecli/policies/autodiscovery/golang:latest"
  - policy: "ghcr.io/updatecli/policies/autodiscovery/npm:latest"

Note: values passed at runtime override bundle defaults. See each policy README for available values.

Authentication / registry

Policies are published on ghcr.io. Public pulls usually work, but authenticating reduces rate limiting and enables access to private bundles:

docker login ghcr.io

For private bundles provide credentials via your container runtime or Updatecli’s registry auth options.

How to inspect & test locally

To inspect a policy bundle shipped inside a folder (useful for development):

updatecli manifest show --config ./policy-folder/updatecli.d --values ./policy-folder/values.yaml

Render graph (Mermaid):

updatecli manifest show --config ./policy-folder/updatecli.d --values ./policy-folder/values.yaml --graph --graph-flavor mermaid

Publishing

Policies in this repository are published automatically by CI when Policy.yaml version is bumped. When changing a policy:

  • Update Policy.yaml.version following semver.

  • Update CHANGELOG.md and the policy README.md.

  • Ensure CI validation (lint/manifest tests) passes.

CONTRIBUTING

If you want to contribute, see CONTRIBUTING for contribution guidelines, PR checklist and publishing details.

Short contributor checklist:

  • Open an issue to discuss non-trivial changes.

  • Bump Policy.yaml version if behaviour changes.

  • Update README, CHANGELOG and example values.

  • Ensure CI passes before merging.

FAQ

Why a monorepo?

A monorepo simplifies discovery, CI and publishing for policy bundles. We may split into multiple repos later as needed.

Thanks to all the contributors ❤️

policies

About

Updatecli Policies

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors 6