local secretSecrets = import 'lib/secret-secrets.libsonnet'; local publicSecrets = import 'lib/public-secrets.libsonnet'; local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet'; local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet'; local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet'; local save = import 'node_modules/@sigyl/jsonnet-drone/save.libsonnet'; local build = import 'node_modules/@sigyl/jsonnet-drone/build.libsonnet'; local print = import 'node_modules/@sigyl/jsonnet-drone/print.libsonnet'; local droneImages = import 'node_modules/@sigyl/jsonnet-drone/drone-images.libsonnet'; local config = { registry: '', name: 'drone', root: 'stack' }; local defs = [ { load: 'drone/drone:2.17.0@sha256:53d00dd3699774fe420ed1bac0fa241bca7a1f05c3f7d2ef12e025d85e04a4ee', save: 'drone/drone:2.17.0' }, { load: 'drone/drone-runner-docker:1.8.3@sha256:31d8534f559b26b76fb292eec957b852999a338cbd48284980cd483c04373f9a', save: 'drone/drone-runner-docker:1.8.3' }, ]; [ register, registry( config { secrets: [ 'REGISTRY_DOMAIN', 'REGISTRY_PORT', 'REGISTRY_PASSWORD' ], images: defs, }, ), save(config)( defs, [], ), print(config)( [], publicSecrets, secretSecrets, ), build(config)( [], ), droneImages(config), deploy(config)( [ 'REGISTRY_DOMAIN', 'REGISTRY_PORT', 'REGISTRY_PASSWORD', 'SCHEME', ], publicSecrets, secretSecrets, [], ) { trigger +: { event +: [ 'promote', ], target +: [ 'production', ], }, }, ]