Fix argocd login
This commit is contained in:
parent
c49ee4ddf8
commit
49e741d9e9
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue