chore(golang): upgrade to 1.16

This commit is contained in:
Bo-Yi Wu 2021-03-27 13:13:13 +08:00
parent 6f4c2625b2
commit ae91ee7be1
2 changed files with 25 additions and 25 deletions

View File

@ -9,7 +9,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make vet
volumes:
@ -18,7 +18,7 @@ steps:
- name: lint
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make lint
volumes:
@ -27,7 +27,7 @@ steps:
- name: misspell
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make misspell-check
volumes:
@ -36,7 +36,7 @@ steps:
- name: embedmd
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make embedmd
volumes:
@ -57,7 +57,7 @@ steps:
- name: test
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make test
environment:
@ -95,7 +95,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
environment:
@ -107,7 +107,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
environment:
@ -118,7 +118,7 @@ steps:
- name: executable
pull: always
image: golang:1.15
image: golang:1.16
commands:
- ./release/linux/amd64/gorush --help
@ -174,7 +174,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
environment:
@ -186,7 +186,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
environment:
@ -197,7 +197,7 @@ steps:
- name: executable
pull: always
image: golang:1.15
image: golang:1.16
commands:
- ./release/linux/arm64/gorush --help
@ -253,7 +253,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
environment:
@ -265,7 +265,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.15
image: golang:1.16
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
environment:
@ -276,7 +276,7 @@ steps:
- name: executable
pull: always
image: golang:1.15
image: golang:1.16
commands:
- ./release/linux/arm/gorush --help
@ -332,7 +332,7 @@ platform:
steps:
- name: build-all-binary
pull: always
image: golang:1.15
image: golang:1.16
commands:
- make release
when:

View File

@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'make vet',
@ -23,7 +23,7 @@
},
{
name: 'lint',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'make lint',
@ -37,7 +37,7 @@
},
{
name: 'misspell',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'make misspell-check',
@ -51,7 +51,7 @@
},
{
name: 'embedmd',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'make embedmd',
@ -82,7 +82,7 @@
},
{
name: 'test',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
environment: {
ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
@ -131,7 +131,7 @@
steps: [
{
name: 'build-push',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -147,7 +147,7 @@
},
// {
// name: 'build-push-lambda',
// image: 'golang:1.15',
// image: 'golang:1.16',
// pull: 'always',
// environment: {
// CGO_ENABLED: '0',
@ -163,7 +163,7 @@
// },
{
name: 'build-tag',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -177,7 +177,7 @@
},
{
name: 'executable',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
@ -242,7 +242,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.15',
image: 'golang:1.16',
pull: 'always',
commands: [
'make release'