Skip to content

GithubAction which handle base CRUD on given application name

License

Notifications You must be signed in to change notification settings

LedgerHQ/ga-argocd-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ga-argocd-action

GithubAction which handle base CRUD on given application name

Inputs

argocdToken:

Required ArgoCD token.

argocdEndpoint

Required Entrypoint of ArgoCD applicatin (e.g https://argocd.example.com).

destClusterName

Destination cluster name.

destClusterSever

Destination cluster server.

applicationName

Required Name of the application to create/update/delete.

helmChartName

Required Name of Helm chart to apply.

helmChartVersion

Required Helm chart version to apply.

helmRepoUrl

Required Helm repository which holds application chart

applicationNamespace

Namespace when application is/will be deployed. (default: "default").

applicationProject

Project name where application should be deployed. (default: "")

applicationParams

Helm parameters of the application to create/update in format 'name=value;name=value;...'. (default: "")

actionName

One of create, read|get, update, delete. (default: "create")

maxRetry

Max retry of the ArgoCD application creation. (default: "15")

tts

Time To Sleep before each application status check. (default: "10")

doSync

Do the action also sync at the end. (default: true)

Outputs

application

The application specs in JSON strigified aspec

Example usage

uses: inarix/ga-argocd-action@v1
with:
  argocdToken: ${{secrets.ARGOCD_TOKEN}}
  argocdEndpoint: "https://argocd.example.com"
  destClusterName: ${{secrets.CLUSTER_NAME}}
  applicationName: "nginx"
  helmChartName: "nginx"
  helmChartVersion: "9.7.0"
  helmRepoUrl: "https://charts.bitnami.com/bitnami"
  actionName: "create"
  applicationParams: "image.debug=true;replicaCount=2;nodeSelector.name=prod"

About

GithubAction which handle base CRUD on given application name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Makefile 0.5%