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: | run: |
kubectl create namespace argocd kubectl create namespace argocd
kubectl apply -n argocd --server-side -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml 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 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 - name: Import SealedSecrets key
env: env:
@ -53,11 +55,8 @@ jobs:
- name: Wait for ArgoCD sync - name: Wait for ArgoCD sync
run: | run: |
kubectl wait --for=condition=available --timeout=300s deployment --all -n argocd argocd app sync --all --server argocd-server.argocd.svc.cluster.local --plaintext --grpc-web
until kubectl get applications -n argocd -o jsonpath='{.items[*].status.sync.status}' | grep -v OutOfSync; do argocd app wait --all --health --timeout 300 --server argocd-server.argocd.svc.cluster.local --plaintext --grpc-web
echo "Waiting for ArgoCD to sync..."
sleep 10
done
- name: Wait for all deployments - name: Wait for all deployments
run: | run: |