update to go 1.14

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2020-02-27 09:58:32 +08:00
parent 54cdb693e4
commit 6bdace5138
2 changed files with 22 additions and 22 deletions

View File

@ -9,7 +9,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make vet
volumes:
@ -18,7 +18,7 @@ steps:
- name: lint
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make lint
volumes:
@ -27,7 +27,7 @@ steps:
- name: misspell
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make misspell-check
volumes:
@ -36,7 +36,7 @@ steps:
- name: test
pull: always
image: golang:1.13-alpine
image: golang:1.14-alpine
commands:
- apk add git make curl perl bash build-base zlib-dev ucl-dev
- make ssh-server
@ -68,7 +68,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-ssh
environment:
@ -80,7 +80,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-ssh
environment:
@ -91,7 +91,7 @@ steps:
- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/amd64/drone-ssh --help
@ -147,7 +147,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-ssh
environment:
@ -159,7 +159,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-ssh
environment:
@ -170,7 +170,7 @@ steps:
- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/arm64/drone-ssh --help
@ -226,7 +226,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-ssh
environment:
@ -238,7 +238,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-ssh
environment:
@ -249,7 +249,7 @@ steps:
- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/arm/drone-ssh --help
@ -305,7 +305,7 @@ platform:
steps:
- name: build-all-binary
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make release
when:

View File

@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'make vet',
@ -23,7 +23,7 @@
},
{
name: 'lint',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'make lint',
@ -37,7 +37,7 @@
},
{
name: 'misspell',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'make misspell-check',
@ -51,7 +51,7 @@
},
{
name: 'test',
image: 'golang:1.13-alpine',
image: 'golang:1.14-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.13',
image: 'golang:1.14',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -109,7 +109,7 @@
},
{
name: 'build-tag',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -123,7 +123,7 @@
},
{
name: 'executable',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
@ -188,7 +188,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'make release'