chore: upgrade to go1.16
This commit is contained in:
parent
6dbb4b1735
commit
d6c3514a66
58
.drone.yml
58
.drone.yml
@ -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: test
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- make test
|
||||
- make coverage
|
||||
@ -71,9 +71,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -83,9 +83,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -94,7 +94,7 @@ steps:
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- ./release/linux/amd64/drone-telegram --help
|
||||
|
||||
@ -133,8 +133,8 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/pull/**"
|
||||
- "refs/tags/**"
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
@ -150,9 +150,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -162,9 +162,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -173,7 +173,7 @@ steps:
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- ./release/linux/arm64/drone-telegram --help
|
||||
|
||||
@ -212,8 +212,8 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/pull/**"
|
||||
- "refs/tags/**"
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
@ -229,9 +229,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -241,9 +241,9 @@ 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/drone-telegram"
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-telegram
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
@ -252,7 +252,7 @@ steps:
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- ./release/linux/arm/drone-telegram --help
|
||||
|
||||
@ -291,8 +291,8 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/pull/**"
|
||||
- "refs/tags/**"
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
@ -308,7 +308,7 @@ platform:
|
||||
steps:
|
||||
- name: build-all-binary
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
@ -322,14 +322,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
|
||||
@ -367,7 +367,7 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/tags/**"
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
|
@ -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: 'test',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
TELEGRAM_TOKEN: { 'from_secret': 'telegram_token' },
|
||||
@ -95,7 +95,7 @@
|
||||
steps: [
|
||||
{
|
||||
name: 'build-push',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
@ -111,7 +111,7 @@
|
||||
},
|
||||
{
|
||||
name: 'build-tag',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
@ -125,7 +125,7 @@
|
||||
},
|
||||
{
|
||||
name: 'executable',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'./release/' + os + '/' + arch + '/' + name + ' --help',
|
||||
@ -190,7 +190,7 @@
|
||||
steps: [
|
||||
{
|
||||
name: 'build-all-binary',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'make release'
|
||||
|
Loading…
Reference in New Issue
Block a user