From ee6dfd8d6c9415c2cf3a29a4d7c8b9d742135544 Mon Sep 17 00:00:00 2001 From: lijie Date: Wed, 7 Feb 2024 18:22:15 +0800 Subject: [PATCH] feat: add tidb-ctl config (#236) # Why - add tidb-ctl build 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..a823c5fa 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-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. - 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: