Merge pull request #1 from thegeeklab/renovate/configure

Configure Renovate
This commit is contained in:
Robert Kaussow 2020-11-12 21:19:21 +01:00 committed by GitHub
commit 3e35e605bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 15 deletions

View File

@ -8,7 +8,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 ./...',
], ],
@ -21,7 +21,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 ./...',
], ],
@ -34,7 +34,7 @@ local PipelineTest = {
}, },
{ {
name: 'vet', name: 'vet',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go vet ./...', 'go vet ./...',
], ],
@ -47,7 +47,7 @@ local PipelineTest = {
}, },
{ {
name: 'test', name: 'test',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go test -cover ./...', 'go test -cover ./...',
], ],
@ -81,7 +81,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/',
@ -149,7 +149,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 + '/drone-github-comment ./cmd/drone-github-comment', '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: 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:
@ -59,7 +59,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/
@ -116,7 +116,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/drone-github-comment ./cmd/drone-github-comment - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/amd64/drone-github-comment ./cmd/drone-github-comment
@ -193,7 +193,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/drone-github-comment ./cmd/drone-github-comment - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm64/drone-github-comment ./cmd/drone-github-comment
@ -270,7 +270,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/drone-github-comment ./cmd/drone-github-comment - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm/drone-github-comment ./cmd/drone-github-comment
@ -432,6 +432,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 674d4c15df2c54a1a0db591ab3eac5c01a893bac05c1bed66e2f1ba1a82cbf9d hmac: c475b26373c250eff194cba0fabfddb2047242a3cfb3250ab734a2dd4f92507e
... ...

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"extends": ["config:base"],
"droneci": {
"enabled": false
}
}