0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-24 01:20: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: [ steps: [
{ {
name: 'staticcheck', name: 'staticcheck',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go run honnef.co/go/tools/cmd/staticcheck ./...', 'go run honnef.co/go/tools/cmd/staticcheck ./...',
], ],
@ -22,7 +22,7 @@ local PipelineTest = {
}, },
{ {
name: 'lint', name: 'lint',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go run golang.org/x/lint/golint -set_exit_status ./...', 'go run golang.org/x/lint/golint -set_exit_status ./...',
], ],
@ -35,7 +35,7 @@ local PipelineTest = {
}, },
{ {
name: 'vet', name: 'vet',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go vet ./...', 'go vet ./...',
], ],
@ -48,7 +48,7 @@ local PipelineTest = {
}, },
{ {
name: 'test', name: 'test',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go test -cover ./...', 'go test -cover ./...',
], ],
@ -83,7 +83,7 @@ local PipelineBuildBinaries = {
steps: [ steps: [
{ {
name: 'build', name: 'build',
image: 'techknowlogick/xgo:go-1.14.x', image: 'techknowlogick/xgo:go-1.15.x',
commands: [ commands: [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'mkdir -p release/', 'mkdir -p release/',
@ -152,7 +152,7 @@ local PipelineBuildContainer(arch='amd64') = {
steps: [ steps: [
{ {
name: 'build', name: 'build',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', '[ -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', '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: steps:
- name: staticcheck - name: staticcheck
image: golang:1.14 image: golang:1.15
commands: commands:
- go run honnef.co/go/tools/cmd/staticcheck ./... - go run honnef.co/go/tools/cmd/staticcheck ./...
volumes: volumes:
@ -16,7 +16,7 @@ steps:
path: /go path: /go
- name: lint - name: lint
image: golang:1.14 image: golang:1.15
commands: commands:
- go run golang.org/x/lint/golint -set_exit_status ./... - go run golang.org/x/lint/golint -set_exit_status ./...
volumes: volumes:
@ -24,7 +24,7 @@ steps:
path: /go path: /go
- name: vet - name: vet
image: golang:1.14 image: golang:1.15
commands: commands:
- go vet ./... - go vet ./...
volumes: volumes:
@ -32,7 +32,7 @@ steps:
path: /go path: /go
- name: test - name: test
image: golang:1.14 image: golang:1.15
commands: commands:
- go test -cover ./... - go test -cover ./...
volumes: volumes:
@ -62,7 +62,7 @@ platform:
steps: steps:
- name: build - name: build
image: techknowlogick/xgo:go-1.14.x image: techknowlogick/xgo:go-1.15.x
commands: commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- mkdir -p release/ - mkdir -p release/
@ -122,7 +122,7 @@ platform:
steps: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
commands: commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - "[ -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 - 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: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
commands: commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - "[ -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 - 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: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
commands: commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - "[ -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 - 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 kind: signature
hmac: 025ee4ad77d1a0b278ee593a8b6b0b56d2d38066364cf3d6bfdf14ab535367c2 hmac: 17ada3730f0eee0944851ad37959cd2a8f15060a20e034632bc868d120632ee4
... ...

View File

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