GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gerardsegarra/updatecli: The GitDevOps Automation Engine

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,110 Commits
1,110 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmd
cmd
 
 
e2e
e2e
 
 
examples
examples
 
 
pkg
pkg
 
 
updatecli
updatecli
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
.goreleaser.yml
.goreleaser.yml
 
 
ADOPTERS.md
ADOPTERS.md
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.adoc
CONTRIBUTING.adoc
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.adoc
README.adoc
 
 
codecov.yaml
codecov.yaml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

Updatecli

GitHub Go Report Card GitHub Releases GitHub Releases GitHub Workflow Status Gitter

"Automatically open a PR on your GitOps repository when a third party service publishes an update"

Updatecli is a tool used to apply file update strategies. Designed to be used from everywhere, each application "run" detects if a value needs to be updated using a custom strategy then apply changes according to the strategy.

You describe your update strategy in a file then you run updatecli to it.

Updatecli reads a yaml or a go template configuration file, then works into three stages

  1. Sources: Based on a rule, updatecli fetches a value that will be injected in later stages such as latest application version.

  2. Conditions: Ensure that conditions are met based on the value retrieved during the source stage.

  3. Targets: Update and publish the target files based on a value retrieved from the source stage.

Feature

  • Flexibility: Easy to define tailored update strategies, you are just one yaml file from it.

  • Portability: Easy to add to your workflow whatever it is. Just one command to run. Of course, it’s easy to remove.

  • Extensibility: Easy to add new go packages to support more workflows.

Why

There are already many projects out there which can continuously update your files, but they all have an opinionated way of doing it and they often want you to adopt a new platform. Building and distributing software is a difficult task and good practices constantly evolve. Updatecli was built to work independently of the underlying dependencies to update, wherever you need it and combining whatever workflow you are using, as you can see in the following section.

Demo

Asciinema

The Quick-start is available on www.updatecli.io/docs/prologue/quick-start

Installation

Updatecli is a Go binary available for Linux, MacOS and Windows from the release page or installed via other methods.

Documentation

The documentation of Updatecli is available at www.updatecli.io, but you can also look at the examples section to get an overview.

Example

This example is copy of the quickstart. You can also find it on www.updatecli.io/docs/prologue/quick-start

We define an update strategy in "updatecli.yaml" then we run updatecli apply --config updatecli.yaml. Our objective is to know if the Jenkins project published a new stable version, if they build an appropriated docker image specifically for jdk11 and automatically update our infrastructure accordingly.

## updatecli.yaml
title: Update Jenkins Version

scms:
  default:
    kind: github
    spec:
      user: olblak
      email: [email protected]
      owner: olblak
      repository: charts
      token: mySecretTokenWhichShouldNeverUsedThisWay
      username: olblak
      branch: main

sources:
  jenkins:
    name: Get latest Jenkins version
    kind: jenkins
    spec:
      release: weekly

conditions:
  docker:
    name: "Test if Docker Image Published on Registry"
    kind: dockerimage
    spec:
      image: jenkins/jenkins
      architecture: amd64

targets:
  bumpJenkins:
    name: jenkins/jenkins docker tag
    scmID: default
    kind: yaml
    spec:
      file: charts/jenkins/values.yaml
      key: jenkins.controller.imageTag

pullrequests:
  default:
    title: Open pullrequest with new Jenkins version
    kind: github
    scmID: default
    target:
      - bumpJenkins
    spec:
      automerge: true
      mergemethod: squash
      labels:
        - dependencies

What it says:

  1. Sources:
    What’s the latest jenkins weekly version?
    ⇒ 2.335

  2. Conditions:
    Is there a docker image "jenkins/jenkins" from Dockerhub with the tag "2.335"
    ⇒ Yes then proceed otherwise abort

  3. Targets:
    Do we have to update the key "jenkins.controller.imageTag" from file "./charts/jenkins/values.yaml" located on the Github repository olblak/charts to "2.335"?
    ⇒ If yes then open a Github pull request to the branch "main"

More information here


Contributing

As a community-oriented project, all contributions are greatly appreciated!

Here is a non-exhaustive list of possible contributions:

  • ⭐️ this repository.

  • Propose a new feature request.

  • Highlight an existing feature request with 👍.

  • Contribute to any repository in the updatecli organization

  • Share the love

More information available at CONTRIBUTING

Conferences

  • 2022

    • CDcon (US) - Dependency Management: Where the Fork are We? Video

Links

  • ADOPTERS

  • CONTRIBUTING

  • DOCUMENTATION

  • LICENSE

About

The GitDevOps Automation Engine

www.updatecli.io

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.