Skip to content

Commit

Permalink
build: bump Go from 1.20 to 1.21 (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Aug 9, 2023
1 parent c70abf7 commit 2b29104
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: build binaries
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20.x
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
id: go

- name: Pull source
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
unzip ~/.gorse/download/ml-tag.zip -d ~/.gorse/dataset
unzip ~/.gorse/download/criteo.zip -d ~/.gorse/dataset
- name: Set up Go 1.20.x
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -142,10 +142,10 @@ jobs:
# Retry all errors, including 404. This option might trigger curl upgrade.
retry-all: true

- name: Set up Go 1.20.x
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
id: go

- name: Test
Expand All @@ -172,10 +172,10 @@ jobs:
MYSQL_ROOT_PASSWORD: password

steps:
- name: Set up Go 1.20.x
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
id: go

- name: Check out code into the Go module directory
Expand All @@ -192,7 +192,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-in-one/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-in-one/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-master/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-server/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-worker/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.20
FROM golang:1.21

COPY . gorse

Expand Down

0 comments on commit 2b29104

Please sign in to comment.