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

@@ -1,6 +1,6 @@
local dirs = ['_CI-CD', 'apps']; local dirs = ['_CI-CD', 'apps'];
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 apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter']; local apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter'];
@@ -13,42 +13,34 @@ 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 },
} },
}; };
[ [
{ {
kind: 'pipeline', kind: 'pipeline',
type: 'docker', 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',
type: 'docker',
{ name: 'apps',
kind: 'pipeline', platform: {
type: 'docker',
name: 'apps',
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
]) ],
},
}]},
] ]