go-template/drone.jsonnet

31 lines
509 B
Plaintext
Raw Normal View History

2021-12-28 02:40:31 +08:00
local app = [
"api/example_api",
"service/example_service"
];
local pipeline(app) =
{
"kind": "pipeline",
"type": "docker",
"name": app,
"steps": [
{
"name": "build",
"image": "alpine",
"commands": [
"echo hello world: " + app,
]
}
],
"trigger": [
{
"branch": "master"
},
{
"paths": "/app/"+app+"/*"
}
]
};
2021-12-28 03:24:00 +08:00
[ pipeline(app) for app in app]