Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
305K

argocd-sync argocd-sync

This pipeline plugin trigger a sync for ArgoCD app

arguments

  • additional_flags - Additional flags for argocd command ( like --grpc-web, so on )
  • additional_flags_for_wait_cmd - Additional flags for argocd app wait command ( like --grpc-web, so on )
  • app_name - The argocd application to be synced
  • basic_auth - Use ArgoCD username/password as primary credentials
  • context - Name of argocd context from integrations
  • custom_external_link - Custom external link shown inside build view
  • debug - Debug sync command ( print in terminal )
  • host - Host for argo integration, examlple https://argo. Used only when context is not provided!
  • password - Password of argo integration. Used only when context is not provided!
  • prune - Allow deleting unexpected resources
  • revision - Sync to a specific revision. Preserves parameter overrides
  • rollback - Do rollback to previous rollout if wait command get failed
  • skip_wait_rollout - Skip wait rollout
  • sync - Specify whether to trigger an ArgoCD sync
  • token - Token for argo cd, used only if context variable is not provided
  • username - Username of argo integration. Used only when context is not provided!
  • wait_for_suspend - Specify whether to wait for application suspended status
  • wait_healthy - Specify whether to wait for sync to be completed (in canary consider wait for suspended status)
    sync_and_wait:
  title: Sync ArgoCD app and wait
  type: argocd-sync
  arguments:
    context: argo-demo
    app_name: demo_app

  
    sync_and_wait_with_flags:
  title: Sync ArgoCD app and wait
  type: argocd-sync
  arguments:
    context: argo-demo
    app_name: demo_app
    additional_flags: '--loglevel debug --timeout 1200 --grpc-web --grpc-web-root-path /argocd'

  
github.com
Nazar Rohozhuk
May 19, 2023