chore: update build env to golang 1.16

This commit is contained in:
Robert Kaussow 2021-05-09 23:52:37 +02:00
parent 6036060e7a
commit bc19fac25d
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
3 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ local PipelineTest = {
steps: [
{
name: 'staticcheck',
image: 'golang:1.15',
image: 'golang:1.16',
commands: [
'go run honnef.co/go/tools/cmd/staticcheck ./...',
],
@ -22,7 +22,7 @@ local PipelineTest = {
},
{
name: 'lint',
image: 'golang:1.15',
image: 'golang:1.16',
commands: [
'go run golang.org/x/lint/golint -set_exit_status ./...',
],
@ -35,7 +35,7 @@ local PipelineTest = {
},
{
name: 'vet',
image: 'golang:1.15',
image: 'golang:1.16',
commands: [
'go vet ./...',
],
@ -48,7 +48,7 @@ local PipelineTest = {
},
{
name: 'test',
image: 'golang:1.15',
image: 'golang:1.16',
commands: [
'go test -cover ./...',
],
@ -83,7 +83,7 @@ local PipelineBuildBinaries = {
steps: [
{
name: 'build',
image: 'techknowlogick/xgo:go-1.15.x',
image: 'techknowlogick/xgo:go-1.16.x',
commands: [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'mkdir -p release/',
@ -169,7 +169,7 @@ local PipelineBuildContainer(arch='amd64') = {
steps: [
{
name: 'build',
image: 'golang:1.15',
image: 'golang:1.16',
commands: [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/' + arch + '/drone-github-comment ./cmd/drone-github-comment',

View File

@ -8,7 +8,7 @@ platform:
steps:
- name: staticcheck
image: golang:1.15
image: golang:1.16
commands:
- go run honnef.co/go/tools/cmd/staticcheck ./...
volumes:
@ -16,7 +16,7 @@ steps:
path: /go
- name: lint
image: golang:1.15
image: golang:1.16
commands:
- go run golang.org/x/lint/golint -set_exit_status ./...
volumes:
@ -24,7 +24,7 @@ steps:
path: /go
- name: vet
image: golang:1.15
image: golang:1.16
commands:
- go vet ./...
volumes:
@ -32,7 +32,7 @@ steps:
path: /go
- name: test
image: golang:1.15
image: golang:1.16
commands:
- go test -cover ./...
volumes:
@ -62,7 +62,7 @@ platform:
steps:
- name: build
image: techknowlogick/xgo:go-1.15.x
image: techknowlogick/xgo:go-1.16.x
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- mkdir -p release/
@ -135,7 +135,7 @@ platform:
steps:
- name: build
image: golang:1.15
image: golang:1.16
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/amd64/drone-github-comment ./cmd/drone-github-comment
@ -221,7 +221,7 @@ platform:
steps:
- name: build
image: golang:1.15
image: golang:1.16
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm64/drone-github-comment ./cmd/drone-github-comment
@ -307,7 +307,7 @@ platform:
steps:
- name: build
image: golang:1.15
image: golang:1.16
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm/drone-github-comment ./cmd/drone-github-comment
@ -481,6 +481,6 @@ depends_on:
---
kind: signature
hmac: 08eb30285f9ca0925121fbe966406bb353f1c69f22ad72a16ce1932c5f32ab35
hmac: 53df9035380e2de0711156ba5f5df747870c7071fdd018be39041616688a9f96
...

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/thegeeklab/drone-github-comment
go 1.15
go 1.16
require (
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect