chore: upgrade golang to 1.17 (#648)
This commit is contained in:
parent
eaec26c90d
commit
ccbe874bf4
24
.drone.yml
24
.drone.yml
|
@ -18,7 +18,7 @@ steps:
|
|||
|
||||
- name: embedmd
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- make embedmd
|
||||
volumes:
|
||||
|
@ -39,7 +39,7 @@ steps:
|
|||
|
||||
- name: test
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- make test
|
||||
environment:
|
||||
|
@ -82,7 +82,7 @@ platform:
|
|||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
|
||||
environment:
|
||||
|
@ -94,7 +94,7 @@ steps:
|
|||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
|
||||
environment:
|
||||
|
@ -105,7 +105,7 @@ steps:
|
|||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- ./release/linux/amd64/gorush --help
|
||||
|
||||
|
@ -148,7 +148,7 @@ platform:
|
|||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
|
||||
environment:
|
||||
|
@ -160,7 +160,7 @@ steps:
|
|||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
|
||||
environment:
|
||||
|
@ -171,7 +171,7 @@ steps:
|
|||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- ./release/linux/arm64/gorush --help
|
||||
|
||||
|
@ -214,7 +214,7 @@ platform:
|
|||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
|
||||
environment:
|
||||
|
@ -226,7 +226,7 @@ steps:
|
|||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
|
||||
environment:
|
||||
|
@ -237,7 +237,7 @@ steps:
|
|||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- ./release/linux/arm/gorush --help
|
||||
|
||||
|
@ -280,7 +280,7 @@ platform:
|
|||
steps:
|
||||
- name: build-all-binary
|
||||
pull: always
|
||||
image: golang:1.16
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
},
|
||||
{
|
||||
name: 'embedmd',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'make embedmd',
|
||||
|
@ -54,7 +54,7 @@
|
|||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
|
||||
|
@ -110,7 +110,7 @@
|
|||
steps: [
|
||||
{
|
||||
name: 'build-push',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
|
@ -126,7 +126,7 @@
|
|||
},
|
||||
// {
|
||||
// name: 'build-push-lambda',
|
||||
// image: 'golang:1.16',
|
||||
// image: 'golang:1.17',
|
||||
// pull: 'always',
|
||||
// environment: {
|
||||
// CGO_ENABLED: '0',
|
||||
|
@ -142,7 +142,7 @@
|
|||
// },
|
||||
{
|
||||
name: 'build-tag',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
|
@ -156,7 +156,7 @@
|
|||
},
|
||||
{
|
||||
name: 'executable',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'./release/' + os + '/' + arch + '/' + name + ' --help',
|
||||
|
@ -205,7 +205,7 @@
|
|||
steps: [
|
||||
{
|
||||
name: 'build-all-binary',
|
||||
image: 'golang:1.16',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'make release'
|
||||
|
|
Loading…
Reference in New Issue