chore(CI): upgrade golang to v1.19

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu 2022-12-11 11:27:08 +08:00
parent ab2731687f
commit 61adf6c2bb
2 changed files with 18 additions and 18 deletions

View File

@ -14,7 +14,7 @@ services:
steps: steps:
- commands: - commands:
- make embedmd - make embedmd
image: golang:1.18 image: golang:1.19
name: embedmd name: embedmd
pull: always pull: always
volumes: volumes:
@ -47,7 +47,7 @@ steps:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush - go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-push name: build-push
pull: always pull: always
when: when:
@ -59,7 +59,7 @@ steps:
-a -o release/linux/amd64/gorush -a -o release/linux/amd64/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-tag name: build-tag
pull: always pull: always
when: when:
@ -67,7 +67,7 @@ steps:
- tag - tag
- commands: - commands:
- ./release/linux/amd64/gorush --help - ./release/linux/amd64/gorush --help
image: golang:1.18 image: golang:1.19
name: executable name: executable
pull: always pull: always
- image: plugins/docker:linux-amd64 - image: plugins/docker:linux-amd64
@ -106,7 +106,7 @@ steps:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush - go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-push name: build-push
pull: always pull: always
when: when:
@ -118,7 +118,7 @@ steps:
-a -o release/linux/arm64/gorush -a -o release/linux/arm64/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-tag name: build-tag
pull: always pull: always
when: when:
@ -126,7 +126,7 @@ steps:
- tag - tag
- commands: - commands:
- ./release/linux/arm64/gorush --help - ./release/linux/arm64/gorush --help
image: golang:1.18 image: golang:1.19
name: executable name: executable
pull: always pull: always
- image: plugins/docker:linux-arm64 - image: plugins/docker:linux-arm64
@ -165,7 +165,7 @@ steps:
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush - go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-push name: build-push
pull: always pull: always
when: when:
@ -177,7 +177,7 @@ steps:
-a -o release/linux/arm/gorush -a -o release/linux/arm/gorush
environment: environment:
CGO_ENABLED: "0" CGO_ENABLED: "0"
image: golang:1.18 image: golang:1.19
name: build-tag name: build-tag
pull: always pull: always
when: when:
@ -185,7 +185,7 @@ steps:
- tag - tag
- commands: - commands:
- ./release/linux/arm/gorush --help - ./release/linux/arm/gorush --help
image: golang:1.18 image: golang:1.19
name: executable name: executable
pull: always pull: always
- image: plugins/docker:linux-arm - image: plugins/docker:linux-arm
@ -222,7 +222,7 @@ platform:
steps: steps:
- commands: - commands:
- make release - make release
image: golang:1.18 image: golang:1.19
name: build-all-binary name: build-all-binary
pull: always pull: always
when: when:

View File

@ -23,7 +23,7 @@
// }, // },
{ {
name: 'embedmd', name: 'embedmd',
image: 'golang:1.18', image: 'golang:1.19',
pull: 'always', pull: 'always',
commands: [ commands: [
'make embedmd', 'make embedmd',
@ -54,7 +54,7 @@
}, },
// { // {
// name: 'test', // name: 'test',
// image: 'golang:1.18', // image: 'golang:1.19',
// pull: 'always', // pull: 'always',
// environment: { // environment: {
// ANDROID_API_KEY: { 'from_secret': 'android_api_key' }, // ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
@ -110,7 +110,7 @@
steps: [ steps: [
{ {
name: 'build-push', name: 'build-push',
image: 'golang:1.18', image: 'golang:1.19',
pull: 'always', pull: 'always',
environment: { environment: {
CGO_ENABLED: '0', CGO_ENABLED: '0',
@ -126,7 +126,7 @@
}, },
// { // {
// name: 'build-push-lambda', // name: 'build-push-lambda',
// image: 'golang:1.18', // image: 'golang:1.19',
// pull: 'always', // pull: 'always',
// environment: { // environment: {
// CGO_ENABLED: '0', // CGO_ENABLED: '0',
@ -142,7 +142,7 @@
// }, // },
{ {
name: 'build-tag', name: 'build-tag',
image: 'golang:1.18', image: 'golang:1.19',
pull: 'always', pull: 'always',
environment: { environment: {
CGO_ENABLED: '0', CGO_ENABLED: '0',
@ -156,7 +156,7 @@
}, },
{ {
name: 'executable', name: 'executable',
image: 'golang:1.18', image: 'golang:1.19',
pull: 'always', pull: 'always',
commands: [ commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help', './release/' + os + '/' + arch + '/' + name + ' --help',
@ -205,7 +205,7 @@
steps: [ steps: [
{ {
name: 'build-all-binary', name: 'build-all-binary',
image: 'golang:1.18', image: 'golang:1.19',
pull: 'always', pull: 'always',
commands: [ commands: [
'make release' 'make release'