Skip to content

Commit

Permalink
feat(packages): add image delivery rules (#233)
Browse files Browse the repository at this point in the history
- trunk branch images
- release branch images

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Feb 6, 2024
1 parent 713eb3c commit 15abef2
Showing 1 changed file with 180 additions and 4 deletions.
184 changes: 180 additions & 4 deletions packages/delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,190 @@ image_copy_rules:
dest_repositories: # full repo url
- docker.io/pingcap/tidb
constant_tags: [nightly] # add new tags.
- description: publish latest image
tags_regex: [^latest$]
dest_repositories: # full repo url
- docker.io/pingcap/tidb
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tidb
hub.pingcap.net/pingcap/tidb/images/br:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/br
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/br
hub.pingcap.net/pingcap/tidb/images/lightning:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tidb-lightning
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tidb-lightning
hub.pingcap.net/pingcap/tidb/images/dumpling:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/dumpling
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/dumpling
hub.pingcap.net/pingcap/tiflow/images/cdc:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/ticdc
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/ticdc
hub.pingcap.net/pingcap/tiflow/images/dm:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/dm
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/dm
hub.pingcap.net/pingcap/tiflow/images/tiflow:
- description: delivery the trunk branch extractly images.
tags_regex:
- ^master-[0-9a-f]+$
dest_repositories:
- gcr.io/pingcap-public/tidbcloud/tiflow
- description: delivery the trunk branch images.
tags_regex:
- ^master$
dest_repositories:
- gcr.io/pingcap-public/tidbcloud/tiflow
constant_tags: [latest]
hub.pingcap.net/pingcap/tiflash/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tiflash
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tiflash
hub.pingcap.net/pingcap/tiproxy/image:
- description: publish trunk and version images.
tags_regex:
- ^v\d+\.\d+\.\d
- ^(main|master)(-.+)?$
dest_repositories:
- docker.io/pingcap/tiproxy
hub.pingcap.net/pingcap/monitoring/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tidb-monitor-initializer
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tidb-monitor-initializer
hub.pingcap.net/pingcap/ng-monitoring/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/ng-monitoring
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/ng-monitoring
hub.pingcap.net/pingcap/tidb-tools/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tidb-tools
constant_tags: [nightly]
hub.pingcap.net/pingcap/tidb-binlog/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tidb-binlog
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tidb-binlog
hub.pingcap.net/tikv/tikv/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tikv
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tikv
hub.pingcap.net/tikv/pd/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/pd
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/pd
hub.pingcap.net/pingcap/tiflow-operator/image:
- description: delivery the trunk branch extractly images.
tags_regex:
- ^master-[0-9a-f]+$
dest_repositories:
- gcr.io/pingcap-public/tidbcloud/tiflow-operator
- description: delivery the trunk branch images.
tags_regex:
- ^master$
dest_repositories:
- gcr.io/pingcap-public/tidbcloud/tiflow-operator
constant_tags: [latest]
hub.pingcap.net/pingcap/tidb-dashboard/image:
- description: delivery the trunk branch images.
tags_regex: [^master$]
dest_repositories:
- docker.io/pingcap/tidb-dashboard
constant_tags: [nightly]
- description: delivery the release branch images.
tags_regex:
- ^release-[0-9]+[.][0-9]+$
- ^v[0-9]+[.][0-9]+[.][0-9]+-pre$
dest_repositories:
- hub.pingcap.net/qa/tidb-dashboard

0 comments on commit 15abef2

Please sign in to comment.