chore: upgrade go to 1.15

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2020-09-12 12:21:58 +08:00
parent f80cf5ada4
commit ae7bc2a4d5
2 changed files with 40 additions and 40 deletions

View File

@ -9,7 +9,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make vet
volumes:
@ -18,7 +18,7 @@ steps:
- name: lint
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make lint
volumes:
@ -27,7 +27,7 @@ steps:
- name: misspell
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make misspell-check
volumes:
@ -36,7 +36,7 @@ steps:
- name: embedmd
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make embedmd
volumes:
@ -58,7 +58,7 @@ steps:
- name: test
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make test
environment:
@ -96,9 +96,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush"
environment:
CGO_ENABLED: 0
when:
@ -108,9 +108,9 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush"
environment:
CGO_ENABLED: 0
when:
@ -119,7 +119,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.15
commands:
- ./release/linux/amd64/gorush --help
@ -158,8 +158,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"
depends_on:
- testing
@ -175,9 +175,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush"
environment:
CGO_ENABLED: 0
when:
@ -187,9 +187,9 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush"
environment:
CGO_ENABLED: 0
when:
@ -198,7 +198,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.15
commands:
- ./release/linux/arm64/gorush --help
@ -237,8 +237,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"
depends_on:
- testing
@ -254,9 +254,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush"
environment:
CGO_ENABLED: 0
when:
@ -266,9 +266,9 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.15
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush"
environment:
CGO_ENABLED: 0
when:
@ -277,7 +277,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.15
commands:
- ./release/linux/arm/gorush --help
@ -316,8 +316,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"
depends_on:
- testing
@ -333,7 +333,7 @@ platform:
steps:
- name: build-all-binary
pull: always
image: golang:1.14
image: golang:1.15
commands:
- make release
when:
@ -347,14 +347,14 @@ steps:
api_key:
from_secret: github_release_api_key
files:
- dist/release/*
- "dist/release/*"
when:
event:
- tag
trigger:
ref:
- refs/tags/**
- "refs/tags/**"
depends_on:
- testing
@ -382,7 +382,7 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/tags/**
- "refs/tags/**"
depends_on:
- linux-amd64

View File

@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'make vet',
@ -23,7 +23,7 @@
},
{
name: 'lint',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'make lint',
@ -37,7 +37,7 @@
},
{
name: 'misspell',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'make misspell-check',
@ -51,7 +51,7 @@
},
{
name: 'embedmd',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'make embedmd',
@ -83,7 +83,7 @@
},
{
name: 'test',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
environment: {
ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
@ -132,7 +132,7 @@
steps: [
{
name: 'build-push',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -148,7 +148,7 @@
},
// {
// name: 'build-push-lambda',
// image: 'golang:1.14',
// image: 'golang:1.15',
// pull: 'always',
// environment: {
// CGO_ENABLED: '0',
@ -164,7 +164,7 @@
// },
{
name: 'build-tag',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@ -178,7 +178,7 @@
},
{
name: 'executable',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
@ -243,7 +243,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.14',
image: 'golang:1.15',
pull: 'always',
commands: [
'make release'