chore: update build env to golang 1.16 (#26)

This commit is contained in:
Robert Kaussow
2021-05-10 09:03:59 +02:00
committed by GitHub
parent 7148b3d306
commit 5f01026c5c
5 changed files with 59 additions and 37 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-docker-buildx ./cmd/drone-docker-buildx',