chore: bump golang and dependency version

This commit is contained in:
鲁树人
2024-11-22 00:50:52 +09:00
parent 72ace9fc62
commit 2b0bd2985e
4 changed files with 61 additions and 48 deletions

View File

@@ -33,7 +33,7 @@ local StepGoBuild(GOOS, GOARCH) = {
],
name: 'go build %s/%s' % [GOOS, GOARCH],
image: 'golang:1.22',
image: 'golang:1.23',
environment: {
GOOS: GOOS,
GOARCH: GOARCH,
@@ -54,7 +54,7 @@ local StepUploadArtifact(GOOS, GOARCH) = {
local pkgname = '${DRONE_REPO_NAME}-build',
name: 'upload artifact',
image: 'golang:1.22', // reuse golang:1.19 for curl
image: 'golang:1.23', // reuse golang:1.19 for curl
environment: {
DRONE_GITEA_SERVER: 'https://git.unlock-music.dev',
GITEA_API_KEY: { from_secret: 'GITEA_API_KEY' },
@@ -83,7 +83,7 @@ local PipelineBuild(GOOS, GOARCH, RUN_TEST) = {
(
if RUN_TEST then [{
name: 'go test',
image: 'golang:1.22',
image: 'golang:1.23',
environment: {
GOPROXY: 'https://goproxy.io,direct',
},
@@ -112,7 +112,7 @@ local PipelineRelease() = {
},
{
name: 'go test',
image: 'golang:1.22',
image: 'golang:1.23',
environment: {
GOPROXY: 'https://goproxy.io,direct',
},
@@ -128,7 +128,7 @@ local PipelineRelease() = {
StepGoBuild('darwin', 'arm64'),
{
name: 'prepare root',
image: 'golang:1.22',
image: 'golang:1.23',
commands: [
'mv dist/*.tar.gz dist/*.zip ./',
],