Skip to content

Commit

Permalink
fix(dockerfiles/cd/builders): fix skaffold config files
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Jan 8, 2025
1 parent 8e057e4 commit 8718473
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 49 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/pull-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,15 @@ jobs:
profile: [go-1.23, go-1.22, go-1.21, go-1.20, go-1.19]
platform: [linux/amd64, linux/arm64]
builder: ${{ fromJSON(needs.define-matrix.outputs.changed_go_builder_folders) }}

exclude:
- builder: ticdc
profile: go-1.22
- builder: ticdc
profile: go-1.21
- builder: ticdc
profile: go-1.20
- builder: ticdc
profile: go-1.19
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ jobs:
module: [builder-go]
profile: [go-1.23, go-1.22, go-1.21, go-1.20, go-1.19]
builder: ${{ fromJSON(needs.define-matrix.outputs.changed_go_builder_folders) }}
exclude:
- builder: ticdc
profile: go-1.22
- builder: ticdc
profile: go-1.21
- builder: ticdc
profile: go-1.20
- builder: ticdc
profile: go-1.19

steps:
- name: Checkout sources
Expand Down
12 changes: 7 additions & 5 deletions dockerfiles/cd/builders/ng-monitoring/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -39,7 +40,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -48,7 +50,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
- name: go-1.20
patches:
Expand All @@ -57,7 +59,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.20"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-20
value:
GOLANG_VERSION: 1.20.14
- name: go-1.19
patches:
Expand All @@ -66,5 +68,5 @@ profiles:
value: "{{ .SHA }}-centos7-go1.19"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-19
value:
GOLANG_VERSION: 1.19.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/ng-monitoring/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
12 changes: 7 additions & 5 deletions dockerfiles/cd/builders/pd/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -39,7 +40,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -48,7 +50,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
- name: go-1.20
patches:
Expand All @@ -57,7 +59,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.20"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-20
value:
GOLANG_VERSION: 1.20.14
- name: go-1.19
patches:
Expand All @@ -66,5 +68,5 @@ profiles:
value: "{{ .SHA }}-centos7-go1.19"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-19
value:
GOLANG_VERSION: 1.19.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/pd/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/tem/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
3 changes: 2 additions & 1 deletion dockerfiles/cd/builders/ticdc/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ profiles:
value: "{{ .SHA }}-centos7-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
3 changes: 2 additions & 1 deletion dockerfiles/cd/builders/ticdc/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
12 changes: 7 additions & 5 deletions dockerfiles/cd/builders/tidb-dashboard/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -39,7 +40,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -48,7 +50,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
- name: go-1.20
patches:
Expand All @@ -57,7 +59,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.20"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-20
value:
GOLANG_VERSION: 1.20.14
- name: go-1.19
patches:
Expand All @@ -66,5 +68,5 @@ profiles:
value: "{{ .SHA }}-centos7-go1.19"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-19
value:
GOLANG_VERSION: 1.19.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/tidb-dashboard/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/tidb-operator/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
12 changes: 7 additions & 5 deletions dockerfiles/cd/builders/tidb/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -39,7 +40,8 @@ profiles:
value: "{{ .SHA }}-centos7-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -48,7 +50,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
- name: go-1.20
patches:
Expand All @@ -57,7 +59,7 @@ profiles:
value: "{{ .SHA }}-centos7-go1.20"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-20
value:
GOLANG_VERSION: 1.20.14
- name: go-1.19
patches:
Expand All @@ -66,5 +68,5 @@ profiles:
value: "{{ .SHA }}-centos7-go1.19"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-19
value:
GOLANG_VERSION: 1.19.13
8 changes: 5 additions & 3 deletions dockerfiles/cd/builders/tidb/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ profiles:
value: "{{ .SHA }}-go1.23"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.4
- name: go-1.22
patches:
Expand All @@ -40,7 +41,8 @@ profiles:
value: "{{ .SHA }}-go1.22"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-22 # renovate: datasource=docker depName=golang
value:
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.22.10
- name: go-1.21
patches:
Expand All @@ -49,5 +51,5 @@ profiles:
value: "{{ .SHA }}-go1.21"
- op: add
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-21
value:
GOLANG_VERSION: 1.21.13
Loading

0 comments on commit 8718473

Please sign in to comment.