build: fix ci
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
e504048a30
commit
59a5eabc63
|
@ -20,10 +20,11 @@ local StepGoBuild(GOOS, GOARCH) = {
|
|||
local filepath = 'dist/um-%s-%s.tar.gz' % [GOOS, GOARCH],
|
||||
|
||||
name: 'go build %s/%s' % [GOOS, GOARCH],
|
||||
image: 'golang:1.19',
|
||||
image: 'golang:1.22',
|
||||
environment: {
|
||||
GOOS: GOOS,
|
||||
GOARCH: GOARCH,
|
||||
GOPROXY: "https://proxy.golang.org,https://goproxy.io,direct",
|
||||
},
|
||||
commands: [
|
||||
'DIST_DIR=$(mktemp -d)',
|
||||
|
@ -39,7 +40,7 @@ local StepUploadArtifact(GOOS, GOARCH) = {
|
|||
local pkgname = '${DRONE_REPO_NAME}-build',
|
||||
|
||||
name: 'upload artifact',
|
||||
image: 'golang:1.19', // reuse golang:1.19 for curl
|
||||
image: 'golang:1.22', // reuse golang:1.19 for curl
|
||||
environment: {
|
||||
DRONE_GITEA_SERVER: 'https://git.unlock-music.dev',
|
||||
GITEA_API_KEY: { from_secret: 'GITEA_API_KEY' },
|
||||
|
|
36
.drone.yml
36
.drone.yml
|
@ -19,7 +19,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: linux
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build linux/amd64
|
||||
- commands:
|
||||
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-linux-amd64.tar.gz"
|
||||
|
@ -30,7 +31,7 @@ steps:
|
|||
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
||||
GITEA_API_KEY:
|
||||
from_secret: GITEA_API_KEY
|
||||
image: golang:1.19
|
||||
image: golang:1.22
|
||||
name: upload artifact
|
||||
trigger:
|
||||
event:
|
||||
|
@ -54,7 +55,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: windows
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build windows/amd64
|
||||
- commands:
|
||||
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-windows-amd64.tar.gz"
|
||||
|
@ -65,7 +67,7 @@ steps:
|
|||
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
||||
GITEA_API_KEY:
|
||||
from_secret: GITEA_API_KEY
|
||||
image: golang:1.19
|
||||
image: golang:1.22
|
||||
name: upload artifact
|
||||
trigger:
|
||||
event:
|
||||
|
@ -89,7 +91,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: darwin
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build darwin/amd64
|
||||
- commands:
|
||||
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-darwin-amd64.tar.gz"
|
||||
|
@ -100,7 +103,7 @@ steps:
|
|||
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
||||
GITEA_API_KEY:
|
||||
from_secret: GITEA_API_KEY
|
||||
image: golang:1.19
|
||||
image: golang:1.22
|
||||
name: upload artifact
|
||||
trigger:
|
||||
event:
|
||||
|
@ -128,7 +131,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: linux
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build linux/amd64
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -139,7 +143,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: arm64
|
||||
GOOS: linux
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build linux/arm64
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -150,7 +155,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: "386"
|
||||
GOOS: linux
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build linux/386
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -161,7 +167,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: windows
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build windows/amd64
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -172,7 +179,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: "386"
|
||||
GOOS: windows
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build windows/386
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -183,7 +191,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: amd64
|
||||
GOOS: darwin
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build darwin/amd64
|
||||
- commands:
|
||||
- DIST_DIR=$(mktemp -d)
|
||||
|
@ -194,7 +203,8 @@ steps:
|
|||
environment:
|
||||
GOARCH: arm64
|
||||
GOOS: darwin
|
||||
image: golang:1.19
|
||||
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
||||
image: golang:1.22
|
||||
name: go build darwin/arm64
|
||||
- image: plugins/gitea-release
|
||||
name: create release
|
||||
|
|
Loading…
Reference in New Issue