From d2d89f4ddf1ea9b3a7aece7861a3d286c3842b04 Mon Sep 17 00:00:00 2001 From: Janis Eccarius Date: Sat, 30 May 2026 15:26:45 +0200 Subject: [PATCH] feat(promotion): add htwg-1-prod stage and update promotion policies --- .../nowchess/ncs-projectconfig.yaml | 2 +- .../nowchess/ncs-promotion-template.yaml | 3 + kargo-projects/nowchess/ncs-stage.yaml | 90 +++++++++++++++++++ 3 files changed, 94 insertions(+), 1 deletion(-) diff --git a/kargo-projects/nowchess/ncs-projectconfig.yaml b/kargo-projects/nowchess/ncs-projectconfig.yaml index 89dfb73..c532c87 100644 --- a/kargo-projects/nowchess/ncs-projectconfig.yaml +++ b/kargo-projects/nowchess/ncs-projectconfig.yaml @@ -6,4 +6,4 @@ spec: promotionPolicies: - autoPromotionEnabled: true stageSelector: - name: regex:^staging|eu-central-1-prod$ + name: regex:^staging|eu-central-1-prod|htwg-1-prod$ diff --git a/kargo-projects/nowchess/ncs-promotion-template.yaml b/kargo-projects/nowchess/ncs-promotion-template.yaml index 4e8fe18..0fd6e52 100644 --- a/kargo-projects/nowchess/ncs-promotion-template.yaml +++ b/kargo-projects/nowchess/ncs-promotion-template.yaml @@ -5,6 +5,8 @@ metadata: namespace: nowchess-kargo spec: vars: + - name: skipArgocdUpdate + value: "false" - name: repoUrl value: https://git.janis-eccarius.de/NowChess/Gitops.git - name: component @@ -69,6 +71,7 @@ spec: provider: "gitea" prNumber: ${{ task.outputs['open-pr'].pr.id }} - uses: argocd-update + if: "${{ vars.skipArgocdUpdate != 'true' }}" as: argocd-update config: apps: diff --git a/kargo-projects/nowchess/ncs-stage.yaml b/kargo-projects/nowchess/ncs-stage.yaml index 7d944f0..86e7b2b 100644 --- a/kargo-projects/nowchess/ncs-stage.yaml +++ b/kargo-projects/nowchess/ncs-stage.yaml @@ -157,3 +157,93 @@ spec: steps: - task: name: nowchess-kargo-promotion-template +--- +kind: Stage +apiVersion: kargo.akuity.io/v1alpha1 +metadata: + name: htwg-1-prod + namespace: nowchess-kargo + annotations: + kargo.akuity.io/color: amber +spec: + vars: + - name: folder + value: htwg-1-prod + - name: skipArgocdUpdate + value: "true" + requestedFreight: + - origin: + kind: Warehouse + name: account + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: bot-platform + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: coordinator + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: core + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: io + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: official-bots + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: rule + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: store + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: ws + sources: + direct: false + stages: + - staging + - origin: + kind: Warehouse + name: frontend + sources: + direct: false + stages: + - staging + promotionTemplate: + spec: + steps: + - task: + name: nowchess-kargo-promotion-template