Skip to content
Compare
Choose a tag to compare
@MayurDuduka MayurDuduka released this 26 Jul 06:16
· 7 commits to main since this release

ArgoCD Sync Action

This action refreshes and syncs multiple ArgoCD applications using the ArgoCD API.

  • Future: ability to rollback to the previous version of ArgoCD Application (TODO)

Inputs

  • argocd_server: ArgoCD Server URL (required)
  • argocd_username: ArgoCD Username (required)
  • argocd_password: ArgoCD Password (required)
  • argocd_app_names: Comma-separated list of ArgoCD Application Names (required)
  • refresh_app: Whether to refresh the applications (optional, default: 'false')
  • sync_app: Whether to sync the applications (optional, default: 'false')

Example usage

- name: ArgoCD API Action
  uses: iamops-team/argocd-api@v1.0
  with:
    argocd_server: ${{ secrets.ARGOCD_SERVER }}
    argocd_username: ${{ secrets.ARGOCD_USERNAME }}
    argocd_password: ${{ secrets.ARGOCD_PASSWORD }}
    argocd_app_names: 'app1,app2,app3'
    refresh_app: 'true'
    sync_app: 'true'