From f3d38780f487d1ba4ee1bc2f2bca40c1fb12d968 Mon Sep 17 00:00:00 2001 From: lijie Date: Wed, 7 Feb 2024 18:06:19 +0800 Subject: [PATCH 1/2] feat: add tidb-ctl config Signed-off-by: lijie --- packages/packages.yaml.tmpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/packages.yaml.tmpl b/packages/packages.yaml.tmpl index 7e9d42f8..e2a9f784 100644 --- a/packages/packages.yaml.tmpl +++ b/packages/packages.yaml.tmpl @@ -921,21 +921,23 @@ components: - {{ strings.ReplaceAll "/" "-" .Git.ref | strings.ToLower }}-{{ strings.Trunc 7 .Git.sha }} {{- end }} - {{ strings.ReplaceAll "/" "-" .Git.ref | strings.ToLower }} + builders: + # BUG: tidb-tools has not release branches and all tags taged on master branch. + - image: ghcr.io/pingcap-qe/cd/builders/tidb:v20231115-e1c4b43-go1.21 routers: - description: interpret versions according to semantic version spec. - if: {{ semver.CheckConstraint ">= 7.1.0-0" .Release.version }} - os: [linux] + os: [linux, darwin] arch: [amd64, arm64] profile: [release] steps: release: - - script: go build + - script: make artifacts: - name: "tidb-ctl-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}.tar.gz" files: # output files. - name: tidb-ctl src: - path: bin/tidb-ctl + path: tidb-ctl tidb-binlog: desc: tidb binlog component tarball git: From 353682fdde2e1f09219c95fd1ddda890909dee20 Mon Sep 17 00:00:00 2001 From: lijie Date: Wed, 7 Feb 2024 18:07:31 +0800 Subject: [PATCH 2/2] fix: typo --- packages/packages.yaml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/packages.yaml.tmpl b/packages/packages.yaml.tmpl index e2a9f784..a823c5fa 100644 --- a/packages/packages.yaml.tmpl +++ b/packages/packages.yaml.tmpl @@ -922,7 +922,7 @@ components: {{- end }} - {{ strings.ReplaceAll "/" "-" .Git.ref | strings.ToLower }} builders: - # BUG: tidb-tools has not release branches and all tags taged on master branch. + # BUG: tidb-ctl has not release branches and all tags taged on master branch. - image: ghcr.io/pingcap-qe/cd/builders/tidb:v20231115-e1c4b43-go1.21 routers: - description: interpret versions according to semantic version spec.