awl/.drone.yml
Sam Therapy c5e5573268
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
Preliminary EDNS
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-30 15:32:03 +02:00

124 lines
2.3 KiB
YAML

---
{
"kind": "pipeline",
"name": "1.18-amd64",
"platform": {
"arch": "amd64"
},
"steps": [
{
"commands": [
"git submodule update --init --recursive"
],
"image": "alpine/git",
"name": "submodules"
},
{
"depends_on": [
"submodules"
],
"image": "rancher/drone-golangci-lint:latest",
"name": "lint"
},
{
"commands": [
"go test -v -race ./... -cover"
],
"depends_on": [
"submodules"
],
"image": "golang:1.18",
"name": "test"
}
],
"trigger": {
"event": {
"exclude": [
"tag"
]
}
},
"type": "docker"
}
---
{
"kind": "pipeline",
"name": "1.18-arm64",
"platform": {
"arch": "arm64"
},
"steps": [
{
"commands": [
"git submodule update --init --recursive"
],
"image": "alpine/git",
"name": "submodules"
},
{
"depends_on": [
"submodules"
],
"image": "rancher/drone-golangci-lint:latest",
"name": "lint"
},
{
"commands": [
"go test -v -race ./... -cover"
],
"depends_on": [
"submodules"
],
"image": "golang:1.18",
"name": "test"
}
],
"trigger": {
"event": {
"exclude": [
"tag"
]
}
},
"type": "docker"
}
---
{
"kind": "pipeline",
"name": "release",
"steps": [
{
"commands": [
"git fetch --tags",
"git submodule update --init --recursive"
],
"image": "alpine/git",
"name": "fetch"
},
{
"commands": [
"go test -race ./... -cover"
],
"image": "golang",
"name": "test"
},
{
"commands": [
"goreleaser release"
],
"environment": {
"GITEA_TOKEN": {
"from_secret": "GITEA_TOKEN"
}
},
"image": "goreleaser/goreleaser",
"name": "release"
}
],
"trigger": {
"event": [
"tag"
]
},
"type": "docker"
}