loops and all in one pipeline

This commit is contained in:
2024-04-21 12:50:23 +02:00
parent ac02ddcc00
commit a770e55f47

View File

@@ -26,7 +26,7 @@ local build(dir, package) = {
{ {
kind: 'pipeline', kind: 'pipeline',
type: 'docker', type: 'docker',
name: 'git log', name: 'Build Docker Images',
platform: { platform: {
os: 'linux', os: 'linux',
arch: 'arm64', arch: 'arm64',
@@ -36,34 +36,15 @@ local build(dir, package) = {
name: 'git log', name: 'git log',
image: 'cr.wks/debian-stable', image: 'cr.wks/debian-stable',
commands: [ 'git diff-tree --no-commit-id --name-only HEAD -r' ] commands: [ 'git diff-tree --no-commit-id --name-only HEAD -r' ]
} },
[
build('_CI-CD', app)
for app in packages
], ],
}, [
{
kind: 'pipeline',
type: 'docker',
name: '_CI-CD',
platform: {
os: 'linux',
arch: 'arm64',
},
steps: [
build('_CI-CD', pkg)
for pkg in packages
],
},
{
kind: 'pipeline',
type: 'docker',
name: 'apps',
platform: {
os: 'linux',
arch: 'arm64',
},
steps: [
build('apps', app) build('apps', app)
for app in apps for app in apps
]
], ],
}, },
] ]