ArgoCD Sync Action
A GitHub action managed by OpsVerse syncs an application in ArgoCD.
This example syncs an ArgoCD application.
Input | Description |
---|---|
address | ArgoCD server address. |
token | ArgoCD Token. |
action | ArgoCD Action. For instance: sync. |
appName | Application name to execute the action on. |
disableTlsVerification | Skip TLS validation. This flag should be used if the cert-manager has a self-signed certificate or if there are any you see any sort of x509 errors. |
To sync an application in DeployNow instance automatically (without any manual intervention), use the following example:
The aforementioned example triggers an ArgoCD sync whenever a new commit happens to main branch (via a PR or directly).
It is recommended to give parameters like ARGOCD_SERVER and ARGOCD_TOKEN as repo secrets. Directly committing the raw secrets to GitHub is not a good security measure.