Skip to content

OpsVerseIO/argocd-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ArgoCD Application Sync Action

GitHub Marketplace

A GitHub action that syncs ArgoCD applications.

Usage

Example workflow

This example syncs an ArgoCD application.

name: My Workflow
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Sync ArgoCD Application
        uses: OpsVerseIO/[email protected]
        with:
          address: ${{ secrets.ARGOCD_SERVER }}
          token: ${{ secrets.ARGOCD_TOKEN }}
          action: sync
          appName: "my-example-app"
          disableTlsVerification: "false" # Default is false. Only enable this if ArgoCD doesn't have TLS / has self signed certificate / you see any sort of x509 errors

Inputs

Input Description
address ArgoCD server address.
token ArgoCD Token.
action ArgoCD Action i.e. sync.
appName Application name to execute action on.
disableTlsVerification Skip TLS validation.

Examples

Sync Application

You can sync ArgoCD application after building an image etc.

name: My Workflow
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Sync ArgoCD Application
        uses: OpsVerseIO/[email protected]
        with:
          address: ${{ secrets.ARGOCD_SERVER }}
          token: ${{ secrets.ARGOCD_TOKEN }}
          action: sync
          appName: "my-example-app"
          disableTlsVerification: "false" # Default is false. Only enable this if ArgoCD doesn't have TLS / has self signed certificate / you see any sort of x509 errors