From 93b6fe3ccee10242e3fbd9a1f9c5276e0548f6dc Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Jul 2026 06:40:30 +0200 Subject: [PATCH] ymal: fix nc01 sentinel source snapshot template --- config/hwlab-web-probe-sentinel/profiles.yaml | 8 ++++++-- config/platform-infra/pipelines-as-code.yaml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/hwlab-web-probe-sentinel/profiles.yaml b/config/hwlab-web-probe-sentinel/profiles.yaml index ccf17e12..965e9c7a 100644 --- a/config/hwlab-web-probe-sentinel/profiles.yaml +++ b/config/hwlab-web-probe-sentinel/profiles.yaml @@ -237,6 +237,8 @@ nodes: controlPlaneIndex: "1" argoProjectName: hwlab-jd01 NODE: JD01 + sourceGitSshUrl: ssh://git@ssh.github.com:443/pikasTech/unidesk.git + sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master NC01: target: extends: templates.webProbeSentinelTarget @@ -313,6 +315,8 @@ nodes: controlPlaneIndex: "2" argoProjectName: hwlab-v03 NODE: NC01 + sourceGitSshUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git + sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master-nc01 templates: webProbeSentinelTarget: node: "${NODE}" @@ -332,7 +336,7 @@ templates: entrypoint: scripts/web-probe-sentinel-service.ts buildContext: "." gitMirrorReadUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git - gitSshUrl: ssh://git@ssh.github.com:443/pikasTech/unidesk.git + gitSshUrl: "${sourceGitSshUrl}" branch: master repository: pikasTech/unidesk sourceAuthority: @@ -344,7 +348,7 @@ templates: cacheRef: source.gitMirrorReadUrl refreshPolicy: gitea-controlled-snapshot missingObjectPolicy: fail-fast - stageRefPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master + stageRefPrefix: "${sourceSnapshotPrefix}" argo: namespace: argocd projectName: "${argoProjectName}" diff --git a/config/platform-infra/pipelines-as-code.yaml b/config/platform-infra/pipelines-as-code.yaml index c0fb3945..b427fe82 100644 --- a/config/platform-infra/pipelines-as-code.yaml +++ b/config/platform-infra/pipelines-as-code.yaml @@ -67,11 +67,13 @@ repositories: variables: NODE: JD01 LANE: v03 + sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master url: https://gitea.pikapython.com/mirrors/pikasTech-unidesk - extends: templates.repositories.sentinelV03 variables: NODE: NC01 LANE: v03 + sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master-nc01 - extends: templates.repositories.hwlabV03 variables: NODE: JD01 @@ -147,7 +149,7 @@ templates: params: git_read_url: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git source_branch: master - source_snapshot_prefix: refs/unidesk/snapshots/gitea-actions/unidesk-master + source_snapshot_prefix: "${sourceSnapshotPrefix}" node: "${NODE}" lane: v03 sentinel_id: "${nodeLower}-web-probe-sentinel"