chore: revert to go1.15
This commit is contained in:
parent
e0f4e9a9e4
commit
d5d27734b0
28
.drone.yml
28
.drone.yml
@ -9,7 +9,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: vet
|
- name: vet
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
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.16
|
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.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- make misspell-check
|
- make misspell-check
|
||||||
volumes:
|
volumes:
|
||||||
@ -36,7 +36,7 @@ steps:
|
|||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- make coverage
|
- make coverage
|
||||||
@ -71,7 +71,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-push
|
- name: build-push
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
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:
|
environment:
|
||||||
@ -83,7 +83,7 @@ steps:
|
|||||||
|
|
||||||
- name: build-tag
|
- name: build-tag
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
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/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:
|
environment:
|
||||||
@ -94,7 +94,7 @@ steps:
|
|||||||
|
|
||||||
- name: executable
|
- name: executable
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- ./release/linux/amd64/drone-telegram --help
|
- ./release/linux/amd64/drone-telegram --help
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-push
|
- name: build-push
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
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:
|
environment:
|
||||||
@ -162,7 +162,7 @@ steps:
|
|||||||
|
|
||||||
- name: build-tag
|
- name: build-tag
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
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/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:
|
environment:
|
||||||
@ -173,7 +173,7 @@ steps:
|
|||||||
|
|
||||||
- name: executable
|
- name: executable
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- ./release/linux/arm64/drone-telegram --help
|
- ./release/linux/arm64/drone-telegram --help
|
||||||
|
|
||||||
@ -229,7 +229,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-push
|
- name: build-push
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
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:
|
environment:
|
||||||
@ -241,7 +241,7 @@ steps:
|
|||||||
|
|
||||||
- name: build-tag
|
- name: build-tag
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
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/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:
|
environment:
|
||||||
@ -252,7 +252,7 @@ steps:
|
|||||||
|
|
||||||
- name: executable
|
- name: executable
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- ./release/linux/arm/drone-telegram --help
|
- ./release/linux/arm/drone-telegram --help
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-all-binary
|
- name: build-all-binary
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- make release
|
- make release
|
||||||
when:
|
when:
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'vet',
|
name: 'vet',
|
||||||
image: 'golang:1.16',
|
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.16',
|
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.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
commands: [
|
commands: [
|
||||||
'make misspell-check',
|
'make misspell-check',
|
||||||
@ -51,7 +51,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'test',
|
name: 'test',
|
||||||
image: 'golang:1.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
environment: {
|
environment: {
|
||||||
TELEGRAM_TOKEN: { 'from_secret': 'telegram_token' },
|
TELEGRAM_TOKEN: { 'from_secret': 'telegram_token' },
|
||||||
@ -95,7 +95,7 @@
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'build-push',
|
name: 'build-push',
|
||||||
image: 'golang:1.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
environment: {
|
environment: {
|
||||||
CGO_ENABLED: '0',
|
CGO_ENABLED: '0',
|
||||||
@ -111,7 +111,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'build-tag',
|
name: 'build-tag',
|
||||||
image: 'golang:1.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
environment: {
|
environment: {
|
||||||
CGO_ENABLED: '0',
|
CGO_ENABLED: '0',
|
||||||
@ -125,7 +125,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'executable',
|
name: 'executable',
|
||||||
image: 'golang:1.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
commands: [
|
commands: [
|
||||||
'./release/' + os + '/' + arch + '/' + name + ' --help',
|
'./release/' + os + '/' + arch + '/' + name + ' --help',
|
||||||
@ -190,7 +190,7 @@
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'build-all-binary',
|
name: 'build-all-binary',
|
||||||
image: 'golang:1.16',
|
image: 'golang:1.15',
|
||||||
pull: 'always',
|
pull: 'always',
|
||||||
commands: [
|
commands: [
|
||||||
'make release'
|
'make release'
|
||||||
|
Loading…
Reference in New Issue
Block a user