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: steps:
- name: vet - name: vet
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make vet - make vet
volumes: volumes:
@ -18,7 +18,7 @@ steps:
- name: lint - name: lint
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make lint - make lint
volumes: volumes:
@ -27,7 +27,7 @@ steps:
- name: misspell - name: misspell
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make misspell-check - make misspell-check
volumes: volumes:
@ -36,7 +36,7 @@ steps:
- name: embedmd - name: embedmd
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make embedmd - make embedmd
volumes: volumes:
@ -58,7 +58,7 @@ steps:
- name: test - name: test
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make test - make test
environment: environment:
@ -96,9 +96,9 @@ platform:
steps: steps:
- name: build-push - name: build-push
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -108,9 +108,9 @@ steps:
- name: build-tag - name: build-tag
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -119,7 +119,7 @@ steps:
- name: executable - name: executable
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- ./release/linux/amd64/gorush --help - ./release/linux/amd64/gorush --help
@ -158,8 +158,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/** - "refs/pull/**"
- refs/tags/** - "refs/tags/**"
depends_on: depends_on:
- testing - testing
@ -175,9 +175,9 @@ platform:
steps: steps:
- name: build-push - name: build-push
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -187,9 +187,9 @@ steps:
- name: build-tag - name: build-tag
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -198,7 +198,7 @@ steps:
- name: executable - name: executable
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- ./release/linux/arm64/gorush --help - ./release/linux/arm64/gorush --help
@ -237,8 +237,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/** - "refs/pull/**"
- refs/tags/** - "refs/tags/**"
depends_on: depends_on:
- testing - testing
@ -254,9 +254,9 @@ platform:
steps: steps:
- name: build-push - name: build-push
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -266,9 +266,9 @@ steps:
- name: build-tag - name: build-tag
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -277,7 +277,7 @@ steps:
- name: executable - name: executable
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- ./release/linux/arm/gorush --help - ./release/linux/arm/gorush --help
@ -316,8 +316,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/** - "refs/pull/**"
- refs/tags/** - "refs/tags/**"
depends_on: depends_on:
- testing - testing
@ -333,7 +333,7 @@ platform:
steps: steps:
- name: build-all-binary - name: build-all-binary
pull: always pull: always
image: golang:1.14 image: golang:1.15
commands: commands:
- make release - make release
when: when:
@ -347,14 +347,14 @@ steps:
api_key: api_key:
from_secret: github_release_api_key from_secret: github_release_api_key
files: files:
- dist/release/* - "dist/release/*"
when: when:
event: event:
- tag - tag
trigger: trigger:
ref: ref:
- refs/tags/** - "refs/tags/**"
depends_on: depends_on:
- testing - testing
@ -382,7 +382,7 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - "refs/tags/**"
depends_on: depends_on:
- linux-amd64 - linux-amd64

View File

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