packages as steps
This commit is contained in:
@@ -13,8 +13,8 @@ local build(dir, package) = {
|
||||
registry: 'http://cr.wks',
|
||||
insecure: 'true',
|
||||
tags: ['latest'],
|
||||
repo: 'cr.wks/%(package)s' % { package: package }
|
||||
}
|
||||
repo: 'cr.wks/%(package)s' % { package: package },
|
||||
},
|
||||
};
|
||||
[
|
||||
{
|
||||
@@ -23,32 +23,24 @@ type: 'docker',
|
||||
name: '_CI-CD',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
arch: 'arm64'
|
||||
arch: 'arm64',
|
||||
},
|
||||
steps: [ {
|
||||
|
||||
std.flattenArrays([
|
||||
steps: [
|
||||
build('_CI-CD', pkg)
|
||||
for pkg in packages
|
||||
|
||||
])
|
||||
|
||||
}]},
|
||||
|
||||
],
|
||||
},
|
||||
{
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: 'apps',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
arch: 'arm64'
|
||||
arch: 'arm64',
|
||||
},
|
||||
steps: [ {
|
||||
|
||||
std.flattenArrays([
|
||||
steps: [
|
||||
build('apps', app)
|
||||
for app in apps
|
||||
])
|
||||
|
||||
}]},
|
||||
],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user