Skip to content

Commit

Permalink
build(tidb-operator): add new route for since v2.0.0
Browse files Browse the repository at this point in the history
publish 2 images.

owner can request to add new images in future.

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jan 10, 2025
1 parent 827df5a commit 92cdfcb
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions packages/packages.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1387,8 +1387,31 @@ components:
- if: {{ semver.CheckConstraint "< 1.6.0-0" .Release.version }}
image: ghcr.io/pingcap-qe/cd/builders/tidb-operator:v2024.10.8-14-g52a7228-go1.21
routers:
- description: starts from 1.5.0
if: {{ semver.CheckConstraint ">= 1.5.0-0" .Release.version }}
- description: for range [v2.0.0, )
if: {{ semver.CheckConstraint ">= 2.0.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [release]
steps:
release:
- script: make build
artifacts:
- name: container image - operator
type: image
artifactory:
repo: "{{ .Release.registry }}/pingcap/tidb-operator/images/tidb-operator"
context: .
dockerfile: image/Dockerfile
target: operator # target build stage in Dockerfile
- name: container image - prestop-checker
type: image
artifactory:
repo: "{{ .Release.registry }}/pingcap/tidb-operator/images/prestop-checker"
context: .
dockerfile: image/Dockerfile
target: prestop-checker # target build stage in Dockerfile
- description: for range [v1.5.0, v2.0.0)
if: {{ semver.CheckConstraint ">= 1.5.0-0, < 2.0.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [release, fips]
Expand Down

0 comments on commit 92cdfcb

Please sign in to comment.