76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
|
|
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:1.9.1@sha256:f07d1719b75a404c142b95b47598d7658805359d2416e8f36ddfc0385120e9a6',
|
|
save: 'drone/drone:1.9.1'
|
|
},
|
|
{
|
|
load: 'drone/drone-runner-docker:1.5.3@sha256:8554bbb53c482324f544091ec9b6e855e8581cb27cb9fbfb2c38fd4574dfcd8e',
|
|
save: 'drone/drone-runner-docker:1.5.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',
|
|
],
|
|
},
|
|
},
|
|
]
|