From deaf6112026c4e141a6741ed1663b136932cbf59 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 30 Apr 2026 11:33:48 +0200 Subject: [PATCH] feat(ncs-warehouse): change image selection strategy to SemVer and enforce strict versioning --- .../nowchess/ncs-promotion-template.yaml | 1 + kargo-projects/nowchess/ncs-warehouse.yaml | 36 +++++++++---------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/kargo-projects/nowchess/ncs-promotion-template.yaml b/kargo-projects/nowchess/ncs-promotion-template.yaml index 4d0db6c..734d800 100644 --- a/kargo-projects/nowchess/ncs-promotion-template.yaml +++ b/kargo-projects/nowchess/ncs-promotion-template.yaml @@ -57,6 +57,7 @@ spec: repoURL: ${{ vars.repoUrl }} provider: "gitea" prNumber: ${{ task.outputs['open-pr'].pr.id }} + mergeMethod: "squash" wait: true - uses: git-wait-for-pr if: "${{ status('open-pr') != 'Skipped'}}" diff --git a/kargo-projects/nowchess/ncs-warehouse.yaml b/kargo-projects/nowchess/ncs-warehouse.yaml index 4658690..02673d8 100644 --- a/kargo-projects/nowchess/ncs-warehouse.yaml +++ b/kargo-projects/nowchess/ncs-warehouse.yaml @@ -9,9 +9,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/account - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -24,9 +24,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/bot-platform - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -39,9 +39,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/coordinator - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -54,9 +54,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/core - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -69,9 +69,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/io - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -84,9 +84,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/official-bots - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -99,9 +99,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/rule - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -114,9 +114,9 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/store - constraint: latest + strictSemvers: true --- apiVersion: kargo.akuity.io/v1alpha1 kind: Warehouse @@ -129,6 +129,6 @@ spec: subscriptions: - image: discoveryLimit: 20 - imageSelectionStrategy: Digest + imageSelectionStrategy: SemVer repoURL: ghcr.io/now-chess/now-chess-systems/ws - constraint: latest + strictSemvers: true