Skip to content

Commit

Permalink
chore(apps/prod/tekton/configs/triggers): limit oci artifacts push ev…
Browse files Browse the repository at this point in the history
…ent resource url (#1223)

limit it to special new harbor instance.

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Aug 15, 2024
1 parent 21d830b commit f721593
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f721593

Please sign in to comment.