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 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'];
@@ -13,42 +13,34 @@ local build(dir, package) = {
registry: 'http://cr.wks',
insecure: 'true',
tags: ['latest'],
repo: 'cr.wks/%(package)s' % { package: package }
}
repo: 'cr.wks/%(package)s' % { package: package },
},
};
[
{
kind: 'pipeline',
type: 'docker',
name: '_CI-CD',
platform: {
{
kind: 'pipeline',
type: 'docker',
name: '_CI-CD',
platform: {
os: 'linux',
arch: 'arm64'
},
steps: [ {
std.flattenArrays([
arch: 'arm64',
},
steps: [
build('_CI-CD', pkg)
for pkg in packages
])
}]},
{
kind: 'pipeline',
type: 'docker',
name: 'apps',
platform: {
],
},
{
kind: 'pipeline',
type: 'docker',
name: 'apps',
platform: {
os: 'linux',
arch: 'arm64'
},
steps: [ {
std.flattenArrays([
arch: 'arm64',
},
steps: [
build('apps', app)
for app in apps
])
}]},
],
},
]