ci: change YAML to jsonnet (#34)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6df0d2d309
commit
8c057e1f15
2 changed files with 22 additions and 8 deletions
22
.drone.jsonnet
Normal file
22
.drone.jsonnet
Normal 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"),
|
||||
]
|
|
@ -1,8 +0,0 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang
|
||||
commands:
|
||||
- go test ./...
|
Loading…
Reference in a new issue