From 5644b94e41bdade4d64a765cbf474b273e8fc773 Mon Sep 17 00:00:00 2001 From: shahdlala66 Date: Wed, 6 May 2026 11:52:45 +0200 Subject: [PATCH] chore: frontend added Co-authored-by: Copilot --- kargo-projects/nowchess/ncs-stage.yaml | 12 ++++++ kargo-projects/nowchess/ncs-warehouse.yaml | 15 +++++++ nowchess/base/nowchess-rollouts.yaml | 49 ++++++++++++++++++++++ 3 files changed, 76 insertions(+) diff --git a/kargo-projects/nowchess/ncs-stage.yaml b/kargo-projects/nowchess/ncs-stage.yaml index 58106d4..38d2650 100644 --- a/kargo-projects/nowchess/ncs-stage.yaml +++ b/kargo-projects/nowchess/ncs-stage.yaml @@ -57,6 +57,11 @@ spec: name: ws sources: direct: true + - origin: + kind: Warehouse + name: frontend + sources: + direct: true promotionTemplate: spec: steps: @@ -140,6 +145,13 @@ spec: direct: false stages: - staging + - origin: + kind: Warehouse + name: frontend + sources: + direct: false + stages: + - staging promotionTemplate: spec: steps: diff --git a/kargo-projects/nowchess/ncs-warehouse.yaml b/kargo-projects/nowchess/ncs-warehouse.yaml index 02673d8..51ba4aa 100644 --- a/kargo-projects/nowchess/ncs-warehouse.yaml +++ b/kargo-projects/nowchess/ncs-warehouse.yaml @@ -132,3 +132,18 @@ spec: imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/ws strictSemvers: true +--- +apiVersion: kargo.akuity.io/v1alpha1 +kind: Warehouse +metadata: + name: frontend + namespace: nowchess-kargo +spec: + freightCreationPolicy: Automatic + interval: 5m0s + subscriptions: + - image: + discoveryLimit: 20 + imageSelectionStrategy: SemVer + repoURL: ghcr.io/now-chess/now-chess-systems/frontend + strictSemvers: true diff --git a/nowchess/base/nowchess-rollouts.yaml b/nowchess/base/nowchess-rollouts.yaml index ddaed32..e053339 100644 --- a/nowchess/base/nowchess-rollouts.yaml +++ b/nowchess/base/nowchess-rollouts.yaml @@ -629,3 +629,52 @@ spec: activeService: nowchess-ws-active previewService: nowchess-ws-preview autoPromotionEnabled: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Rollout +metadata: + name: nowchess-frontend + labels: + app: nowchess-ws +spec: + selector: + matchLabels: + app: nowchess-frontend + template: + metadata: + labels: + app: nowchess-frontend + spec: + imagePullSecrets: + - name: ghcr-pull-secret + containers: + - name: nowchess-frontend + image: ghcr.io/now-chess/now-chess-systems/frontend:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 5 + resources: + requests: + cpu: "10m" + memory: "64Mi" + limits: + cpu: "100m" + memory: "128Mi" + strategy: + blueGreen: + activeService: nowchess-frontend-active + previewService: nowchess-frontend-preview + autoPromotionEnabled: true