loops and all in one pipeline
This commit is contained in:
@@ -26,7 +26,7 @@ local build(dir, package) = {
|
||||
{
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: 'git log',
|
||||
name: 'Build Docker Images',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
arch: 'arm64',
|
||||
@@ -36,34 +36,15 @@ local build(dir, package) = {
|
||||
name: 'git log',
|
||||
image: 'cr.wks/debian-stable',
|
||||
commands: [ 'git diff-tree --no-commit-id --name-only HEAD -r' ]
|
||||
}
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
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('_CI-CD', app)
|
||||
for app in packages
|
||||
],
|
||||
[
|
||||
build('apps', app)
|
||||
for app in apps
|
||||
]
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user