looping against
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -1,29 +1,34 @@
|
||||
local dirs = ['_CI-CD'];
|
||||
local packages = ['debian-stable','debian-testing','debian-stable-build-essential','debian-golang','debian-stable-php-fpm','distcc'];
|
||||
local packages = ['debian-stable', 'debian-testing', 'debian-stable-build-essential', 'debian-golang', 'debian-stable-php-fpm', 'distcc'];
|
||||
|
||||
local build(dir, package) = {
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: '%(dir)s-%(package)s' % { dir: dir, package: package },
|
||||
platform: {
|
||||
os: 'linux',
|
||||
arch: 'arm64'
|
||||
},
|
||||
steps: [ {
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: '%(dir)s-%(package)s' % { dir: dir, package: package },
|
||||
platform: {
|
||||
os: 'linux',
|
||||
arch: 'arm64',
|
||||
},
|
||||
steps: [{
|
||||
name: '%(package)s' % { package: package },
|
||||
image: 'plugins/docker',
|
||||
settings: {
|
||||
context: '%(dir)s/%(package)s' % { dir: dir, package: package },
|
||||
dockerfile: '%(dir)s/%(package)s/Dockerfile' % { dir: dir, package: package },
|
||||
registry: 'http://cr.wks',
|
||||
insecure: 'true',
|
||||
tags: ['latest'],
|
||||
repo: 'cr.wks/%(package)s' % { package: package }
|
||||
}
|
||||
}]
|
||||
settings: {
|
||||
context: '%(dir)s/%(package)s' % { dir: dir, package: package },
|
||||
dockerfile: '%(dir)s/%(package)s/Dockerfile' % { dir: dir, package: package },
|
||||
registry: 'http://cr.wks',
|
||||
insecure: 'true',
|
||||
tags: ['latest'],
|
||||
repo: 'cr.wks/%(package)s' % { package: package },
|
||||
},
|
||||
}],
|
||||
};
|
||||
|
||||
[
|
||||
/* [
|
||||
#build('_CI-CD',pkg) for pkg in packages;
|
||||
build('_CI-CD','debian-stable'),
|
||||
]
|
||||
] */
|
||||
|
||||
std.flattenArrays([
|
||||
build('_CI-CD', pkg)
|
||||
for pkg in packages
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user