fix(actions): optimized workflow by installing argocd and sealedsecrets in parallel, manually sync argocd
Some checks failed
/ validate (push) Failing after 2m35s

This commit is contained in:
jad0s 2026-05-25 07:30:27 +02:00
parent 25e490b9e0
commit f57a22bf16

View file

@ -32,12 +32,14 @@ jobs:
run: |
kubectl create namespace argocd
kubectl apply -n argocd --server-side -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl wait --for=condition=available --timeout=180s deployment/argocd-server -n argocd
- name: Install SealedSecrets
run: |
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.27.0/controller.yaml
kubectl wait --for=condition=available --timeout=60s deployment/sealed-secrets-controller -n kube-system
kubectl wait --for=condition=available --timeout=180s \
deployment/argocd-server \
deployment/argocd-repo-server \
deployment/argocd-applicationset-controller \
-n argocd
kubectl wait --for=condition=available --timeout=60s \
deployment/sealed-secrets-controller -n kube-system
- name: Import SealedSecrets key
env:
@ -53,11 +55,8 @@ jobs:
- name: Wait for ArgoCD sync
run: |
kubectl wait --for=condition=available --timeout=300s deployment --all -n argocd
until kubectl get applications -n argocd -o jsonpath='{.items[*].status.sync.status}' | grep -v OutOfSync; do
echo "Waiting for ArgoCD to sync..."
sleep 10
done
argocd app sync --all --server argocd-server.argocd.svc.cluster.local --plaintext --grpc-web
argocd app wait --all --health --timeout 300 --server argocd-server.argocd.svc.cluster.local --plaintext --grpc-web
- name: Wait for all deployments
run: |