Skip to content

Commit

Permalink
fix(dockerfiles//cd/builders): bump golang version to v1.23.1 (#418)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo authored Sep 18, 2024
1 parent 34b72ff commit 4c05774
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
module: [builder-go]
go-profile: [go-1.23, go-1.22, go-1.21, go-1.20, go-1.19]
go-profile: [go-1.23, go-1.22, go-1.21]
builder-profile: [local-docker]
platform: [linux/amd64, linux/arm64]
steps:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/pull-verify-packages-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.23"

- name: Install tools
run: |
# install gomplate
git clone https://github.com/hairyhenderson/gomplate && \
pushd gomplate && \
GOBIN=/usr/local/bin go install ./cmd/gomplate &&
popd &&
rm -rf gomplate && \
gomplate --version
GOBIN=/usr/local/bin go install github.com/hairyhenderson/gomplate/v4/cmd/[email protected]
gomplate --version
# install shelldoc to check the README.md
git clone https://github.com/endocode/shelldoc && \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
module: [builder-go]
go-profile: [go-1.23, go-1.22, go-1.21, go-1.20, go-1.19]
go-profile: [go-1.23, go-1.22, go-1.21]
builder-profile: [local-docker]
steps:
- name: Checkout sources
Expand Down
41 changes: 2 additions & 39 deletions dockerfiles/cd/builders/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ profiles:
- op: add
path: /build/artifacts/0/kaniko/buildArgs
value: &value-go1-23
GOLANG_VERSION: 1.23.0
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.1
- op: add
path: /build/artifacts/1/kaniko/buildArgs
value: *value-go1-23
Expand Down Expand Up @@ -105,7 +106,6 @@ profiles:
- op: add
path: /build/artifacts/0/kaniko/buildArgs
value: &value-go1-21
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.21.13
- op: add
path: /build/artifacts/1/kaniko/buildArgs
Expand All @@ -116,43 +116,6 @@ profiles:
- op: add
path: /build/artifacts/3/kaniko/buildArgs
value: *value-go1-21
- name: go-1.20
patches:
- op: replace
path: /build/tagPolicy/customTemplate/template
value: "{{ .SHA }}-go1.20"
- op: add
path: /build/artifacts/0/kaniko/buildArgs
value: &value-go1-20
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.20.14
- op: add
path: /build/artifacts/1/kaniko/buildArgs
value: *value-go1-20
- op: add
path: /build/artifacts/2/kaniko/buildArgs
value: *value-go1-20
- op: add
path: /build/artifacts/2/kaniko/buildArgs
value: *value-go1-20
- name: go-1.19
patches:
- op: replace
path: /build/tagPolicy/customTemplate/template
value: "{{ .SHA }}-go1.19"
- op: add
path: /build/artifacts/0/kaniko/buildArgs
value: &value-go1-19
GOLANG_VERSION: 1.19.13
- op: add
path: /build/artifacts/1/kaniko/buildArgs
value: *value-go1-19
- op: add
path: /build/artifacts/2/kaniko/buildArgs
value: *value-go1-19
- op: add
path: /build/artifacts/3/kaniko/buildArgs
value: *value-go1-19

---
apiVersion: skaffold/v4beta6
Expand Down
3 changes: 2 additions & 1 deletion packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Configuration template: [packages.yaml.tmpl](./packages.yaml.tmpl)
- `(~ 6.0]`: golang `v1.18.x`
- `[6.1 ~ 7.0)`: golang `v1.19`
- `[7.0 ~ 7.3]`: golang `v1.20.x`
- `[7.4 ~)`: golang `v1.21.x`
- `[7.4 ~ 8.3]`: golang `v1.21.x`
- `[8.4 ~ )`: golang `v1.23.x`

### Required context

Expand Down

0 comments on commit 4c05774

Please sign in to comment.