DeployNow
...
Advanced Deployment Options
CI/CD with GitHub Actions

ArgoCD Sync Action

A GitHub action managed by OpsVerse syncs an application in ArgoCD.

Usage

Example workflow

This example syncs an ArgoCD application.



YAML


Inputs

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.

Examples

Sync an Application

To sync an application in DeployNow instance automatically (without any manual intervention), use the following example:



YAML


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.