From 4c016c904cf14493194a517372ca4565330d13c6 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 26 Sep 2020 12:45:51 +0800 Subject: [PATCH] chore: upgrade to go1.15 Signed-off-by: Bo-Yi Wu --- .drone.yml | 28 ++++++++++++++-------------- pipeline.libsonnet | 16 ++++++++-------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 743217a..8265069 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ platform: steps: - name: vet pull: always - image: golang:1.13 + image: golang:1.15 commands: - make vet volumes: @@ -18,7 +18,7 @@ steps: - name: lint pull: always - image: golang:1.13 + image: golang:1.15 commands: - make lint volumes: @@ -27,7 +27,7 @@ steps: - name: misspell pull: always - image: golang:1.13 + image: golang:1.15 commands: - make misspell-check volumes: @@ -36,7 +36,7 @@ steps: - name: test pull: always - image: golang:1.13 + image: golang:1.15 commands: - make test - make coverage @@ -71,7 +71,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-telegram" environment: @@ -83,7 +83,7 @@ steps: - name: build-tag pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/drone-telegram" environment: @@ -94,7 +94,7 @@ steps: - name: executable pull: always - image: golang:1.13 + image: golang:1.15 commands: - ./release/linux/amd64/drone-telegram --help @@ -150,7 +150,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-telegram" environment: @@ -162,7 +162,7 @@ steps: - name: build-tag pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-telegram" environment: @@ -173,7 +173,7 @@ steps: - name: executable pull: always - image: golang:1.13 + image: golang:1.15 commands: - ./release/linux/arm64/drone-telegram --help @@ -229,7 +229,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-telegram" environment: @@ -241,7 +241,7 @@ steps: - name: build-tag pull: always - image: golang:1.13 + image: golang:1.15 commands: - "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-telegram" environment: @@ -252,7 +252,7 @@ steps: - name: executable pull: always - image: golang:1.13 + image: golang:1.15 commands: - ./release/linux/arm/drone-telegram --help @@ -308,7 +308,7 @@ platform: steps: - name: build-all-binary pull: always - image: golang:1.13 + image: golang:1.15 commands: - make release when: diff --git a/pipeline.libsonnet b/pipeline.libsonnet index 9d70b50..4918e5e 100644 --- a/pipeline.libsonnet +++ b/pipeline.libsonnet @@ -9,7 +9,7 @@ steps: [ { name: 'vet', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', commands: [ 'make vet', @@ -23,7 +23,7 @@ }, { name: 'lint', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', commands: [ 'make lint', @@ -37,7 +37,7 @@ }, { name: 'misspell', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', commands: [ 'make misspell-check', @@ -51,7 +51,7 @@ }, { name: 'test', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', environment: { TELEGRAM_TOKEN: { 'from_secret': 'telegram_token' }, @@ -95,7 +95,7 @@ steps: [ { name: 'build-push', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', environment: { CGO_ENABLED: '0', @@ -111,7 +111,7 @@ }, { name: 'build-tag', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', environment: { CGO_ENABLED: '0', @@ -125,7 +125,7 @@ }, { name: 'executable', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', commands: [ './release/' + os + '/' + arch + '/' + name + ' --help', @@ -190,7 +190,7 @@ steps: [ { name: 'build-all-binary', - image: 'golang:1.13', + image: 'golang:1.15', pull: 'always', commands: [ 'make release'