Skip to content

Commit b8a97ab

Browse files
committed
update to go 1.20
Signed-off-by: CrazyMax <[email protected]>
1 parent 37d54eb commit b8a97ab

File tree

17 files changed

+25
-18
lines changed

17 files changed

+25
-18
lines changed

.github/workflows/.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
type: string
2828

2929
env:
30-
GO_VERSION: "1.19"
30+
GO_VERSION: "1.20"
3131
SETUP_BUILDX_VERSION: "latest"
3232
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
3333
TESTFLAGS: "-v --parallel=6 --timeout=30m"

.github/workflows/buildkit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- 'frontend/dockerfile/docs/**'
2121

2222
env:
23-
GO_VERSION: "1.19"
23+
GO_VERSION: "1.20"
2424
SETUP_BUILDX_VERSION: "latest"
2525
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
2626
IMAGE_NAME: "moby/buildkit"

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
- 'frontend/dockerfile/docs/**'
1919

2020
env:
21-
GO_VERSION: "1.19"
21+
GO_VERSION: "1.20"
2222
SETUP_BUILDX_VERSION: "latest"
2323
SETUP_BUILDKIT_TAG: "moby/buildkit:latest"
2424
IMAGE_NAME: "docker/dockerfile-upstream"

.github/workflows/test-os.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
- 'frontend/dockerfile/docs/**'
1919

2020
env:
21-
GO_VERSION: "1.19"
21+
GO_VERSION: "1.20"
2222
TESTFLAGS: "-v --parallel=6 --timeout=30m"
2323

2424
jobs:
@@ -39,7 +39,7 @@ jobs:
3939
name: Set up Go
4040
uses: actions/setup-go@v3
4141
with:
42-
go-version: ${{ env.GO_VERSION }}
42+
go-version: "${{ env.GO_VERSION }}"
4343
cache: true
4444
-
4545
name: Go mod

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARG MINIO_VERSION=RELEASE.2022-05-03T20-36-08Z
1515
ARG MINIO_MC_VERSION=RELEASE.2022-05-04T06-07-55Z
1616
ARG AZURITE_VERSION=3.18.0
1717

18+
ARG GO_VERSION=1.20
1819
ARG ALPINE_VERSION=3.17
1920

2021
# minio for s3 integration tests
@@ -35,7 +36,7 @@ FROM alpine-$TARGETARCH AS alpinebase
3536
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.2.1 AS xx
3637

3738
# go base image
38-
FROM --platform=$BUILDPLATFORM golang:1.19-alpine${ALPINE_VERSION} AS golatest
39+
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest
3940

4041
# git stage is used for checking out remote repository sources
4142
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS git

examples/buildkit0/buildkit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333
}
3434

3535
func goBuildBase() llb.State {
36-
goAlpine := llb.Image("docker.io/library/golang:1.19-alpine")
36+
goAlpine := llb.Image("docker.io/library/golang:1.20-alpine")
3737
return goAlpine.
3838
AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix).
3939
AddEnv("GOPATH", "/go").

examples/buildkit1/buildkit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333
}
3434

3535
func goBuildBase() llb.State {
36-
goAlpine := llb.Image("docker.io/library/golang:1.19-alpine")
36+
goAlpine := llb.Image("docker.io/library/golang:1.20-alpine")
3737
return goAlpine.
3838
AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix).
3939
AddEnv("GOPATH", "/go").

examples/buildkit2/buildkit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333
}
3434

3535
func goBuildBase() llb.State {
36-
goAlpine := llb.Image("docker.io/library/golang:1.19-alpine")
36+
goAlpine := llb.Image("docker.io/library/golang:1.20-alpine")
3737
return goAlpine.
3838
AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix).
3939
AddEnv("GOPATH", "/go").

examples/buildkit3/buildkit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
}
3535

3636
func goBuildBase() llb.State {
37-
goAlpine := llb.Image("docker.io/library/golang:1.19-alpine")
37+
goAlpine := llb.Image("docker.io/library/golang:1.20-alpine")
3838
return goAlpine.
3939
AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix).
4040
AddEnv("GOPATH", "/go").

examples/buildkit4/buildkit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func main() {
3737
}
3838

3939
func goBuildBase() llb.State {
40-
goAlpine := llb.Image("docker.io/library/golang:1.19-alpine")
40+
goAlpine := llb.Image("docker.io/library/golang:1.20-alpine")
4141
return goAlpine.
4242
AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix).
4343
AddEnv("GOPATH", "/go").

0 commit comments

Comments
 (0)