chore(go): upgrade to go1.17

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2022-02-06 13:02:24 +08:00
parent c4e24b1ab9
commit 471976f1d8
3 changed files with 117 additions and 158 deletions

View File

@@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
commands: [
'make vet',
@@ -23,7 +23,7 @@
},
{
name: 'lint',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
commands: [
'make lint',
@@ -37,7 +37,7 @@
},
{
name: 'misspell',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
commands: [
'make misspell-check',
@@ -51,7 +51,7 @@
},
{
name: 'test',
image: 'golang:1.16-alpine',
image: 'golang:1.17-alpine',
pull: 'always',
commands: [
'apk add git make curl perl bash build-base zlib-dev ucl-dev',
@@ -93,7 +93,7 @@
steps: [
{
name: 'build-push',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@@ -109,7 +109,7 @@
},
{
name: 'build-tag',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@@ -123,7 +123,7 @@
},
{
name: 'executable',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
@@ -188,7 +188,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.16',
image: 'golang:1.17',
pull: 'always',
commands: [
'make release'