This commit is contained in:
2021-12-28 03:24:00 +08:00
parent f51dc6df4a
commit 2a5445f432
2 changed files with 2 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
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+"/*"
}
]
};
[ pipeline(app) for app in app]