|
|
@ -8,7 +8,9 @@ steps:
|
|
|
|
name: fetch tags
|
|
|
|
name: fetch tags
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- go test -v ./...
|
|
|
|
- go test -v ./...
|
|
|
|
image: golang:1.19
|
|
|
|
environment:
|
|
|
|
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go test
|
|
|
|
name: go test
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -19,7 +21,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build linux/amd64
|
|
|
|
name: go build linux/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-linux-amd64.tar.gz"
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-linux-amd64.tar.gz"
|
|
|
@ -30,7 +33,7 @@ steps:
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
GITEA_API_KEY:
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
image: golang:1.19
|
|
|
|
image: golang:1.22
|
|
|
|
name: upload artifact
|
|
|
|
name: upload artifact
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
event:
|
|
|
@ -54,7 +57,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: windows
|
|
|
|
GOOS: windows
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build windows/amd64
|
|
|
|
name: go build windows/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-windows-amd64.tar.gz"
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-windows-amd64.tar.gz"
|
|
|
@ -65,7 +69,7 @@ steps:
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
GITEA_API_KEY:
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
image: golang:1.19
|
|
|
|
image: golang:1.22
|
|
|
|
name: upload artifact
|
|
|
|
name: upload artifact
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
event:
|
|
|
@ -89,7 +93,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: darwin
|
|
|
|
GOOS: darwin
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build darwin/amd64
|
|
|
|
name: go build darwin/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-darwin-amd64.tar.gz"
|
|
|
|
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-darwin-amd64.tar.gz"
|
|
|
@ -100,7 +105,7 @@ steps:
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
GITEA_API_KEY:
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
image: golang:1.19
|
|
|
|
image: golang:1.22
|
|
|
|
name: upload artifact
|
|
|
|
name: upload artifact
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
event:
|
|
|
@ -117,7 +122,9 @@ steps:
|
|
|
|
name: fetch tags
|
|
|
|
name: fetch tags
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- go test -v ./...
|
|
|
|
- go test -v ./...
|
|
|
|
image: golang:1.19
|
|
|
|
environment:
|
|
|
|
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go test
|
|
|
|
name: go test
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -128,7 +135,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build linux/amd64
|
|
|
|
name: go build linux/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -139,7 +147,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: arm64
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build linux/arm64
|
|
|
|
name: go build linux/arm64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -150,7 +159,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: "386"
|
|
|
|
GOARCH: "386"
|
|
|
|
GOOS: linux
|
|
|
|
GOOS: linux
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build linux/386
|
|
|
|
name: go build linux/386
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -161,7 +171,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: windows
|
|
|
|
GOOS: windows
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build windows/amd64
|
|
|
|
name: go build windows/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -172,7 +183,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: "386"
|
|
|
|
GOARCH: "386"
|
|
|
|
GOOS: windows
|
|
|
|
GOOS: windows
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build windows/386
|
|
|
|
name: go build windows/386
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -183,7 +195,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: darwin
|
|
|
|
GOOS: darwin
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build darwin/amd64
|
|
|
|
name: go build darwin/amd64
|
|
|
|
- commands:
|
|
|
|
- commands:
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
|
- DIST_DIR=$(mktemp -d)
|
|
|
@ -194,7 +207,8 @@ steps:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
GOARCH: arm64
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOS: darwin
|
|
|
|
GOOS: darwin
|
|
|
|
image: golang:1.19
|
|
|
|
GOPROXY: https://proxy.golang.org,https://goproxy.io,direct
|
|
|
|
|
|
|
|
image: golang:1.22
|
|
|
|
name: go build darwin/arm64
|
|
|
|
name: go build darwin/arm64
|
|
|
|
- image: plugins/gitea-release
|
|
|
|
- image: plugins/gitea-release
|
|
|
|
name: create release
|
|
|
|
name: create release
|
|
|
|