Skip to content

Commit b479022

Browse files
Cr sync custom output (#538)
* change docker version * custom external link * custom external link
1 parent 0a68fb4 commit b479022

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

graduated/argocd-sync/step.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '1.0'
22
kind: step-type
33
metadata:
44
name: argocd-sync
5-
version: 1.17.1
5+
version: 1.18.0
66
isPublic: true
77
description: This pipeline plugin trigger a sync for ArgoCD app
88
sources:
@@ -132,13 +132,18 @@ spec:
132132
"type": "boolean",
133133
"description": "Use ArgoCD username/password as primary credentials",
134134
"default": false
135+
},
136+
"custom_external_link": {
137+
"type": "string",
138+
"description": "Custom external link shown inside build view",
139+
"default": ""
135140
}
136141
}
137142
}
138143
steps:
139144
runArgoCd:
140145
title: "Run ArgoCD"
141-
image: "codefresh/cf-argo-plugin:0.3.1"
146+
image: "codefresh/cf-argo-plugin:0.3.2"
142147
commands:
143148
- >-
144149
cf-argo-plugin sync "${{app_name}}"
@@ -147,18 +152,19 @@ spec:
147152
--sync=${{sync}} --prune=${{prune}} --wait-healthy=${{wait_healthy}} --wait-suspend=${{wait_for_suspend}} --debug=${{debug}}
148153
--revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}} --basic-auth=${{basic_auth}}
149154
--out-commands-file /codefresh/volume/${CF_BLOCK_NAME}-argo-executor --out-export-file /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
155+
--custom-external-link="${{custom_external_link}}"
150156
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
151157
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
152158
- /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
153159
- export ARGOCD_OPTS=$(echo ${{additional_flags}} | tr "," " ")
154160
- echo ARGOCD_OPTS=$ARGOCD_OPTS >> /meta/env_vars_to_export
155161
executeArgoCd:
156162
title: "ExecuteArgoCd"
157-
image: "codefresh/cf-argo-plugin:0.3.1"
163+
image: "codefresh/cf-argo-plugin:0.3.2"
158164
commands:
159165
- /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
160166
rollback:
161167
title: "Rollback"
162-
image: "codefresh/cf-argo-plugin:0.3.1"
168+
image: "codefresh/cf-argo-plugin:0.3.2"
163169
commands:
164170
- 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

Comments
 (0)