chore: update drone build flow

This commit is contained in:
Bo-Yi Wu
2022-06-15 22:24:28 +08:00
parent 2407d7a56b
commit 492a5db6ae
4 changed files with 35 additions and 59 deletions

View File

@@ -9,7 +9,7 @@
steps: [
{
name: 'vet',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
commands: [
'make vet',
@@ -23,7 +23,7 @@
},
{
name: 'lint',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
commands: [
'make lint',
@@ -35,23 +35,9 @@
},
],
},
{
name: 'misspell',
image: 'golang:1.17',
pull: 'always',
commands: [
'make misspell-check',
],
volumes: [
{
name: 'gopath',
path: '/go',
},
],
},
{
name: 'test',
image: 'golang:1.17-alpine',
image: 'golang:1.18-alpine',
pull: 'always',
commands: [
'apk add git make curl perl bash build-base zlib-dev ucl-dev',
@@ -93,7 +79,7 @@
steps: [
{
name: 'build-push',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@@ -109,7 +95,7 @@
},
{
name: 'build-tag',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
environment: {
CGO_ENABLED: '0',
@@ -123,7 +109,7 @@
},
{
name: 'executable',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
commands: [
'./release/' + os + '/' + arch + '/' + name + ' --help',
@@ -188,7 +174,7 @@
steps: [
{
name: 'build-all-binary',
image: 'golang:1.17',
image: 'golang:1.18',
pull: 'always',
commands: [
'make release'