fix(actions): stop argocd login, use the kubernetes api directly with --core flag of argocd command
Some checks failed
/ validate (push) Failing after 2m37s
Some checks failed
/ validate (push) Failing after 2m37s
This commit is contained in:
parent
9715b21f69
commit
7e545e39c3
1 changed files with 9 additions and 9 deletions
|
|
@ -45,13 +45,13 @@ jobs:
|
||||||
kubectl rollout restart deployment/argocd-server -n argocd
|
kubectl rollout restart deployment/argocd-server -n argocd
|
||||||
kubectl rollout status deployment/argocd-server -n argocd --timeout=60s
|
kubectl rollout status deployment/argocd-server -n argocd --timeout=60s
|
||||||
|
|
||||||
- name: Login to ArgoCD
|
#- name: Login to ArgoCD
|
||||||
run: |
|
# run: |
|
||||||
argocd login argocd-server.argocd.svc.cluster.local \
|
# argocd login argocd-server.argocd.svc.cluster.local \
|
||||||
--plaintext \
|
# --plaintext \
|
||||||
--grpc-web \
|
# --grpc-web \
|
||||||
--username admin \
|
# --username admin \
|
||||||
--password argocd-ci
|
# --password argocd-ci
|
||||||
|
|
||||||
- name: Import SealedSecrets key
|
- name: Import SealedSecrets key
|
||||||
env:
|
env:
|
||||||
|
|
@ -68,8 +68,8 @@ jobs:
|
||||||
- name: Wait for ArgoCD sync
|
- name: Wait for ArgoCD sync
|
||||||
run: |
|
run: |
|
||||||
APPS=$(argocd app list -o name)
|
APPS=$(argocd app list -o name)
|
||||||
argocd app sync --async $APPS
|
argocd app sync --core --async $APPS
|
||||||
argocd app wait --health --timeout 300 $APPS
|
argocd app wait --core --health --timeout 300 $APPS
|
||||||
|
|
||||||
- name: Wait for all deployments
|
- name: Wait for all deployments
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue