ci: split GitOps state into cloud-host-gitops repo, add Sealed Secrets, fix pipeline auth
Build and Deploy Platform / build-and-deploy (push) Failing after 20m1s

- Workflow now pushes image tags to the separate cloud-host-gitops repo
  (no more CI loop risk) and authenticates via CI_TOKEN secret
- Fix undefined ${REGISTRY} in Kaniko jobs, add concurrency group,
  targeted tag update, and mounted kaniko-harbor-auth docker config
- Argo CD Application is now multi-source (chart from cloud-host,
  values from cloud-host-gitops)
- Remove plaintext runner token and proxy credentials from manifests;
  secrets are now SealedSecrets in the gitops repo

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-07-02 14:10:46 +03:30
parent d4559920d1
commit 7e66d1edf3
10 changed files with 390 additions and 97 deletions
+13 -9
View File
@@ -1,19 +1,23 @@
# Source of truth for this file: cloud-host-gitops repo (argocd/application-platform.yaml).
# Kept here as a mirror for bootstrap convenience.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: abrban-platform
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://git.abrban.com/abrban/cloud-host.git
targetRevision: main
path: backend/helm/cloudhost-platform
helm:
valueFiles:
- ../../../gitops/platform/values-abrban.yaml
# Multi-source: chart lives in the app repo, values (GitOps state) live in cloud-host-gitops.
sources:
- repoURL: https://git.abrban.com/abrban/cloud-host.git
targetRevision: main
path: backend/helm/cloudhost-platform
helm:
valueFiles:
- $values/platform/values-abrban.yaml
- repoURL: https://git.abrban.com/abrban/cloud-host-gitops.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: cloudhost