From f721593f43e0887716a0c0f76847408960b1823c Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Thu, 15 Aug 2024 11:31:39 +0800 Subject: [PATCH] chore(apps/prod/tekton/configs/triggers): limit oci artifacts push event resource url (#1223) limit it to special new harbor instance. Signed-off-by: wuhuizuo --- .../triggers/triggers/_/harbor/artifact-push-on-harbor.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/prod/tekton/configs/triggers/triggers/_/harbor/artifact-push-on-harbor.yaml b/apps/prod/tekton/configs/triggers/triggers/_/harbor/artifact-push-on-harbor.yaml index e0637e42a..50acf7c7f 100644 --- a/apps/prod/tekton/configs/triggers/triggers/_/harbor/artifact-push-on-harbor.yaml +++ b/apps/prod/tekton/configs/triggers/triggers/_/harbor/artifact-push-on-harbor.yaml @@ -18,7 +18,7 @@ spec: && body.event_data.resources[0].tag.matches('^(master|main)_(darwin|linux)_(amd64|arm64)$') && - body.event_data.resources[0].resource_url.startsWith('hub.pingcap.net/') + body.event_data.resources[0].resource_url.startsWith('hub-mig.pingcap.net/') bindings: - ref: harbor-image-push - { name: nightly, value: "true" } @@ -45,7 +45,7 @@ spec: && body.event_data.resources[0].tag.matches('^(release-[0-9]+[.][0-9]+)_(linux|darwin)_(amd64|arm64)$') && - body.event_data.resources[0].resource_url.startsWith('hub.pingcap.net/') + body.event_data.resources[0].resource_url.startsWith('hub-mig.pingcap.net/') bindings: - ref: harbor-image-push template: @@ -71,7 +71,7 @@ spec: && body.event_data.resources[0].tag.matches('^v[0-9]+[.][0-9]+[.][0-9]+_(linux|darwin)_(amd64|arm64)$') && - body.event_data.resources[0].resource_url.startsWith('hub.pingcap.net/') + body.event_data.resources[0].resource_url.startsWith('hub-mig.pingcap.net/') bindings: - ref: harbor-image-push template: