From f57a22bf1674dd65b4e1dc93b5f475524e7fdf7f Mon Sep 17 00:00:00 2001 From: jad0s Date: Mon, 25 May 2026 07:30:27 +0200 Subject: [PATCH] fix(actions): optimized workflow by installing argocd and sealedsecrets in parallel, manually sync argocd --- .forgejo/workflows/validate.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/validate.yaml b/.forgejo/workflows/validate.yaml index 41327bc..480a1e9 100644 --- a/.forgejo/workflows/validate.yaml +++ b/.forgejo/workflows/validate.yaml @@ -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: |