change YML to JSONNET
All checks were successful
continuous-integration/drone Build is passing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-07-13 01:09:10 +02:00
parent 6df0d2d309
commit 8aacf6661b
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 22 additions and 8 deletions

22
.drone.jsonnet Normal file
View file

@ -0,0 +1,22 @@
local pipeline(version, arch) = {
kind: "pipeline",
name: version + "-" + arch ,
platform: {
arch: arch
},
steps: [
{
name: "test",
image: "golang:" + version,
commands: [
"go test ./..."
]
}
]
};
// logawl uses generics so 1.18 is the minimum
[
pipeline("1.18", "amd64"),
pipeline("1.18", "arm64"),
]

View file

@ -1,8 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: Test
image: golang
commands:
- go test ./...