drone as jsonnnet
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
25
.drone.jsonnet
Normal file
25
.drone.jsonnet
Normal file
@@ -0,0 +1,25 @@
|
||||
local dirs = ['_CI-CD'];
|
||||
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: 'build-%(dir)s-%(package)s' % { dir: dir, package: package },
|
||||
steps: [ {
|
||||
name: 'build-%(package)s' % { package: package },
|
||||
image: 'plugin/docker',
|
||||
settings: {
|
||||
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 }
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
[
|
||||
std.flattenArrays([
|
||||
build(dirs[0],pkg) for pkg in packages
|
||||
]);
|
||||
]
|
||||
Reference in New Issue
Block a user