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

View File

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