Skip to content

Commit

Permalink
chore: Align naming convention for Argo CD task (#96)
Browse files Browse the repository at this point in the history
We use ARGOCD_URL, but argocd cli expects hostname:

ARGOCD_SERVER	the address of the Argo CD server without
https:// prefix (instead of specifying --server for every command)
eg. ARGOCD_SERVER=argocd.mycompany.com if served through an ingress
with DNS

Signed-off-by: Sergiy Kulanov <[email protected]>
Change-Id: I1fc7dcfe2545f9ebea5d0331d3a9715aca67f23b
  • Loading branch information
SergK committed Jan 17, 2024
1 parent 12c608d commit 5cd4dfe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: wait-for-deploy
image: epamedp/tekton-cd-pipeline:0.1.1
env:
- name: ARGOCD_SERVER
- name: ARGOCD_URL
valueFrom:
secretKeyRef:
name: ci-argocd
Expand All @@ -38,6 +38,8 @@ spec:
set -ex
export ARGOCD_OPTS="--core=false --grpc-web"
# the address of the Argo CD server without https:// prefix
export ARGOCD_SERVER=${ARGOCD_URL#*//}
pipeline=$(params.PIPELINE)
stage=$(params.STAGE)
Expand Down

0 comments on commit 5cd4dfe

Please sign in to comment.