Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions graduated/argocd-sync/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '1.0'
kind: step-type
metadata:
name: argocd-sync
version: 1.16.2
version: 1.16.3
isPublic: true
description: This pipeline plugin trigger a sync for ArgoCD app
sources:
Expand Down Expand Up @@ -122,20 +122,25 @@ spec:
"type": "boolean",
"description": "Skip wait rollout",
"default": false
},
"basic_auth": {
"type": "boolean",
"description": "Use ArgoCD username/password as primary credentials",
"default": false
}
}
}
steps:
runArgoCd:
title: "Run ArgoCD"
image: "codefresh/cf-argo-plugin:0.2.3"
image: "codefresh/cf-argo-plugin:0.2.4"
commands:
- >-
cf-argo-plugin sync "${{app_name}}"
--cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}"
--argo-host=${{host}} --argo-username=${{username}} --argo-password="${{password}}"
--sync=${{sync}} --prune=${{prune}} --wait-healthy=${{wait_healthy}} --wait-suspend=${{wait_for_suspend}} --debug=${{debug}}
--revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}}
--revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}} --basic-auth=${{basic_auth}}
--out-commands-file /codefresh/volume/${CF_BLOCK_NAME}-argo-executor --out-export-file /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
Expand All @@ -144,11 +149,11 @@ spec:
- echo ARGOCD_OPTS=$ARGOCD_OPTS >> /meta/env_vars_to_export
executeArgoCd:
title: "ExecuteArgoCd"
image: "codefresh/cf-argo-plugin:0.2.3"
image: "codefresh/cf-argo-plugin:0.2.4"
commands:
- /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
rollback:
title: "Rollback"
image: "codefresh/cf-argo-plugin:0.2.3"
image: "codefresh/cf-argo-plugin:0.2.4"
commands:
- cf-argo-plugin rollback ${{app_name}} --code=$ARGO_SYNC_ERROR --cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}" --needRollback=${{rollback}}