Skip to content

Commit to a GitHub repository with the latest version of your app to trigger a deployment (with ex. ArgoCD, Flux)

Notifications You must be signed in to change notification settings

WiserSolutions/gitops-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitOps Deploy for GitHub Actions

This repo provides a module to automatically update a version reference within a GitOps YAML repository. This can be combined with a GitOps compatible tools (such as ArgoCD or Flux) to automatically deploy the latest app artifacts to your environments.

Basic Usage

Add a step to your deployment workflow, after you have packaged your code (with Docker or otherwise):

    - uses: WiserSolutioons/gitops-deploy@v1
      with:
        repository: <my org>/<gitops repo>
        ref: test/prod/whatever
        path: kube/<my app>.yaml
        token: ${{ secrets.<some token for your CI user> }}

        field: 0.image.tag # or whatever the yaml field is where you put the version of your app
        new-version: <insert a variable with the new version of your app>

Options Reference

Name Required Description
host no SSH host of your GitOps repository
repository yes Path of your GitHub repo (ex. Org/repo-name)
ref yes Branch or Git identifier to commit on (including refs/heads/)
token yes Authentication for GitHub HTTP
path yes Path of the file which configures this service
field yes Location within the YAML to insert the new version/tag, in lodash.set syntax
new-version yes String which should be set as the new version in the given field
retryCount no Number of times to retry if commit fails due to remote conflicts

About

Commit to a GitHub repository with the latest version of your app to trigger a deployment (with ex. ArgoCD, Flux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published