diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ccb51da72ce..445642a070b 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.16.x - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fac83423ef5..8a236274228 100755 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.16.x - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5badae96a0..b08db1fa7f7 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@master with: - go-version: 1.14.x + go-version: 1.16.x - name: Prepare id: prepare diff --git a/Dockerfile b/Dockerfile index 5018254b761..0f2d175df55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.15.2-alpine AS builder +FROM golang:1.16.1-alpine AS builder ENV GO111MODULE=on ENV GOPROXY=https://goproxy.io diff --git a/build-in-docker-and-put-oss.sh b/build-in-docker-and-put-oss.sh index 7c35709b360..bb669d54904 100755 --- a/build-in-docker-and-put-oss.sh +++ b/build-in-docker-and-put-oss.sh @@ -1,7 +1,7 @@ # build.sh v3.0.2 COMMIT_SHA1=$(git rev-parse --short HEAD || echo "0.0.0") BUILD_TIME=$(date "+%F %T") -docker run -v $GOPATH/src/github.com/fanux/sealos:/go/src/github.com/fanux/sealos -w /go/src/github.com/fanux/sealos --rm golang:1.13.5 \ +docker run -v $GOPATH/src/github.com/fanux/sealos:/go/src/github.com/fanux/sealos -w /go/src/github.com/fanux/sealos --rm golang:1.16.1 \ go build -o sealos -ldflags "github.com/linuxsuren/cobra-extension/version.version=$1' -X 'github.com/linuxsuren/cobra-extension/version.commit=${COMMIT_SHA1}' -X 'github.com/linuxsuren/cobra-extension/version.date=${BUILD_TIME}'" main.go command -v upx &> /dev/null && upx sealos ../ossutil64 -c ../oss-config cp -f sealos oss://sealyun/$1/sealos