@@ -2,7 +2,7 @@ version: '1.0'
2
2
kind : step-type
3
3
metadata :
4
4
name : argocd-sync
5
- version : 1.16.2
5
+ version : 1.16.3
6
6
isPublic : true
7
7
description : This pipeline plugin trigger a sync for ArgoCD app
8
8
sources :
@@ -122,20 +122,25 @@ spec:
122
122
"type": "boolean",
123
123
"description": "Skip wait rollout",
124
124
"default": false
125
+ },
126
+ "basic_auth": {
127
+ "type": "boolean",
128
+ "description": "Use ArgoCD username/password as primary credentials",
129
+ "default": false
125
130
}
126
131
}
127
132
}
128
133
steps :
129
134
runArgoCd :
130
135
title : " Run ArgoCD"
131
- image : " codefresh/cf-argo-plugin:0.2.3 "
136
+ image : " codefresh/cf-argo-plugin:0.2.4 "
132
137
commands :
133
138
- >-
134
139
cf-argo-plugin sync "${{app_name}}"
135
140
--cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}"
136
141
--argo-host=${{host}} --argo-username=${{username}} --argo-password="${{password}}"
137
142
--sync=${{sync}} --prune=${{prune}} --wait-healthy=${{wait_healthy}} --wait-suspend=${{wait_for_suspend}} --debug=${{debug}}
138
- --revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}}
143
+ --revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}} --basic-auth=${{basic_auth}}
139
144
--out-commands-file /codefresh/volume/${CF_BLOCK_NAME}-argo-executor --out-export-file /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
140
145
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
141
146
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
@@ -144,11 +149,11 @@ spec:
144
149
- echo ARGOCD_OPTS=$ARGOCD_OPTS >> /meta/env_vars_to_export
145
150
executeArgoCd :
146
151
title : " ExecuteArgoCd"
147
- image : " codefresh/cf-argo-plugin:0.2.3 "
152
+ image : " codefresh/cf-argo-plugin:0.2.4 "
148
153
commands :
149
154
- /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
150
155
rollback :
151
156
title : " Rollback"
152
- image : " codefresh/cf-argo-plugin:0.2.3 "
157
+ image : " codefresh/cf-argo-plugin:0.2.4 "
153
158
commands :
154
159
- cf-argo-plugin rollback ${{app_name}} --code=$ARGO_SYNC_ERROR --cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}" --needRollback=${{rollback}}
0 commit comments