Skip to content

Commit

Permalink
upgrade go version to 1.14
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Mar 31, 2020
1 parent 89988c9 commit 7a721a5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
58 changes: 29 additions & 29 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make vet
environment:
Expand All @@ -20,7 +20,7 @@ steps:

- name: lint
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make lint
environment:
Expand All @@ -31,7 +31,7 @@ steps:

- name: misspell
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make misspell-check
environment:
Expand All @@ -42,7 +42,7 @@ steps:

- name: test
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make test
- make coverage
Expand Down Expand Up @@ -80,9 +80,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-lambda
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -93,9 +93,9 @@ steps:

- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-lambda
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -105,7 +105,7 @@ steps:

- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/amd64/drone-lambda --help

Expand Down Expand Up @@ -144,8 +144,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"

depends_on:
- testing
Expand All @@ -161,9 +161,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-lambda
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -174,9 +174,9 @@ steps:

- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-lambda
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -186,7 +186,7 @@ steps:

- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/arm64/drone-lambda --help

Expand Down Expand Up @@ -225,8 +225,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"

depends_on:
- testing
Expand All @@ -242,9 +242,9 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-lambda
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -255,9 +255,9 @@ steps:

- name: build-tag
pull: always
image: golang:1.13
image: golang:1.14
commands:
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-lambda
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-lambda"
environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -267,7 +267,7 @@ steps:

- name: executable
pull: always
image: golang:1.13
image: golang:1.14
commands:
- ./release/linux/arm/drone-lambda --help

Expand Down Expand Up @@ -306,8 +306,8 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/pull/**
- refs/tags/**
- "refs/pull/**"
- "refs/tags/**"

depends_on:
- testing
Expand All @@ -323,7 +323,7 @@ platform:
steps:
- name: build-all-binary
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make release
environment:
Expand All @@ -339,14 +339,14 @@ steps:
api_key:
from_secret: github_release_api_key
files:
- dist/release/*
- "dist/release/*"
when:
event:
- tag

trigger:
ref:
- refs/tags/**
- "refs/tags/**"

depends_on:
- testing
Expand Down Expand Up @@ -374,7 +374,7 @@ steps:
trigger:
ref:
- refs/heads/master
- refs/tags/**
- "refs/tags/**"

depends_on:
- linux-amd64
Expand Down
16 changes: 8 additions & 8 deletions pipeline.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
GO111MODULE: 'on',
Expand All @@ -26,7 +26,7 @@
},
{
name: 'lint',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
GO111MODULE: 'on',
Expand All @@ -43,7 +43,7 @@
},
{
name: 'misspell',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
GO111MODULE: 'on',
Expand All @@ -60,7 +60,7 @@
},
{
name: 'test',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
GO111MODULE: 'on',
Expand Down Expand Up @@ -106,7 +106,7 @@
steps: [
{
name: 'build-push',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
CGO_ENABLED: '0',
Expand All @@ -123,7 +123,7 @@
},
{
name: 'build-tag',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
CGO_ENABLED: '0',
Expand All @@ -138,7 +138,7 @@
},
{
name: 'executable',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
Expand Down Expand Up @@ -203,7 +203,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.13',
image: 'golang:1.14',
pull: 'always',
environment: {
GO111MODULE: 'on',
Expand Down

0 comments on commit 7a721a5

Please sign in to comment.