Fix argocd login

This commit is contained in:
Victor Timofei 2021-12-30 17:41:47 +02:00
parent c49ee4ddf8
commit 49e741d9e9
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: argocd-env-configmap
data:
ARGOCD_SERVER: https://argocd.k8s-argocd.tk
ARGOCD_SERVER: argocd.k8s-argocd.tk
ARGOCD_APPLICATION_NAME: tekton-pipeline-app
ARGOCD_APPLICATION_REVISION: HEAD

View File

@ -17,7 +17,8 @@ spec:
steps:
- name: argocd-app-sync
image: argoproj/argocd:$(params.argocd-version)
# TODO: REMOVE insecure flag when using prod server
script: |
argocd login $ARGOCD_SERVER --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD
argocd app sync $ARGOCD_APPLICATION_NAME $(params.flags) --server $ARGOCD_SERVER
argocd app wait $ARGOCD_APPLICATION_NAME --health $(params.flags) --server $ARGOCD_SERVER
argocd login $ARGOCD_SERVER --insecure --grpc-web --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD
argocd app sync $ARGOCD_APPLICATION_NAME --grpc-web $(params.flags) --server $ARGOCD_SERVER
argocd app wait $ARGOCD_APPLICATION_NAME --grpc-web --health $(params.flags) --server $ARGOCD_SERVER