0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-21 12:40:38 +00:00

switch to go 1.15

This commit is contained in:
Robert Kaussow 2020-12-06 23:49:27 +01:00
parent deb7d0f7d4
commit ce653b1cfc
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 17 additions and 15 deletions

View File

@ -9,7 +9,7 @@ local PipelineTest = {
steps: [
{
name: 'staticcheck',
image: 'golang:1.14',
image: 'golang:1.15',
commands: [
'go run honnef.co/go/tools/cmd/staticcheck ./...',
],
@ -22,7 +22,7 @@ local PipelineTest = {
},
{
name: 'lint',
image: 'golang:1.14',
image: 'golang:1.15',
commands: [
'go run golang.org/x/lint/golint -set_exit_status ./...',
],
@ -35,7 +35,7 @@ local PipelineTest = {
},
{
name: 'vet',
image: 'golang:1.14',
image: 'golang:1.15',
commands: [
'go vet ./...',
],
@ -48,7 +48,7 @@ local PipelineTest = {
},
{
name: 'test',
image: 'golang:1.14',
image: 'golang:1.15',
commands: [
'go test -cover ./...',
],
@ -83,7 +83,7 @@ local PipelineBuildBinaries = {
steps: [
{
name: 'build',
image: 'techknowlogick/xgo:go-1.14.x',
image: 'techknowlogick/xgo:go-1.15.x',
commands: [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'mkdir -p release/',
@ -152,7 +152,7 @@ local PipelineBuildContainer(arch='amd64') = {
steps: [
{
name: 'build',
image: 'golang:1.14',
image: 'golang:1.15',
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 + '/github-releases-notifier ./cmd/github-releases-notifier',

View File

@ -8,7 +8,7 @@ platform:
steps:
- name: staticcheck
image: golang:1.14
image: golang:1.15
commands:
- go run honnef.co/go/tools/cmd/staticcheck ./...
volumes:
@ -16,7 +16,7 @@ steps:
path: /go
- name: lint
image: golang:1.14
image: golang:1.15
commands:
- go run golang.org/x/lint/golint -set_exit_status ./...
volumes:
@ -24,7 +24,7 @@ steps:
path: /go
- name: vet
image: golang:1.14
image: golang:1.15
commands:
- go vet ./...
volumes:
@ -32,7 +32,7 @@ steps:
path: /go
- name: test
image: golang:1.14
image: golang:1.15
commands:
- go test -cover ./...
volumes:
@ -62,7 +62,7 @@ platform:
steps:
- name: build
image: techknowlogick/xgo:go-1.14.x
image: techknowlogick/xgo:go-1.15.x
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- mkdir -p release/
@ -122,7 +122,7 @@ platform:
steps:
- name: build
image: golang:1.14
image: golang:1.15
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/github-releases-notifier ./cmd/github-releases-notifier
@ -208,7 +208,7 @@ platform:
steps:
- name: build
image: golang:1.14
image: golang:1.15
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/github-releases-notifier ./cmd/github-releases-notifier
@ -294,7 +294,7 @@ platform:
steps:
- name: build
image: golang:1.14
image: golang:1.15
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/github-releases-notifier ./cmd/github-releases-notifier
@ -468,6 +468,6 @@ depends_on:
---
kind: signature
hmac: 025ee4ad77d1a0b278ee593a8b6b0b56d2d38066364cf3d6bfdf14ab535367c2
hmac: 17ada3730f0eee0944851ad37959cd2a8f15060a20e034632bc868d120632ee4
...

View File

@ -1,2 +1,4 @@
- ENHANCEMENT
- Update github.com/shurcooL/githubv4 commit hash to 234843c
- INTERNAL
- switch to go 1.15