Skip to content

Commit

Permalink
bump go version to 1.16.1
Browse files Browse the repository at this point in the history
Signed-off-by: oldthreefeng <[email protected]>
  • Loading branch information
oldthreefeng committed Mar 12, 2021
1 parent f42d77c commit b29f665
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-in-docker-and-put-oss.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b29f665

Please sign in to comment.