A GitHub action that syncs ArgoCD applications.
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
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. |
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