packages as steps
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build was killed

This commit is contained in:
2023-12-19 13:55:34 +01:00
parent a2143bfc0a
commit b423324a75

View File

@@ -13,8 +13,8 @@ local build(dir, package) = {
registry: 'http://cr.wks', registry: 'http://cr.wks',
insecure: 'true', insecure: 'true',
tags: ['latest'], 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', name: '_CI-CD',
platform: { platform: {
os: 'linux', os: 'linux',
arch: 'arm64' arch: 'arm64',
}, },
steps: [ { steps: [
std.flattenArrays([
build('_CI-CD', pkg) build('_CI-CD', pkg)
for pkg in packages for pkg in packages
],
]) },
}]},
{ {
kind: 'pipeline', kind: 'pipeline',
type: 'docker', type: 'docker',
name: 'apps', name: 'apps',
platform: { platform: {
os: 'linux', os: 'linux',
arch: 'arm64' arch: 'arm64',
}, },
steps: [ { steps: [
std.flattenArrays([
build('apps', app) build('apps', app)
for app in apps for app in apps
]) ],
},
}]},
] ]