drone/.drone/drone-home.jsonnet

76 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2020-08-26 23:14:17 +00:00
local secretSecrets = import 'lib/secret-secrets.libsonnet';
local publicSecrets = import 'lib/public-secrets.libsonnet';
local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet';
2020-08-26 23:28:07 +00:00
local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
2020-10-23 09:24:14 +00:00
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';
2020-10-23 19:22:53 +00:00
local droneImages = import 'node_modules/@sigyl/jsonnet-drone/drone-images.libsonnet';
local config = {
registry: '',
2020-10-23 09:24:14 +00:00
name: 'drone',
root: 'stack'
};
2020-10-23 09:24:14 +00:00
local defs = [
{
2021-10-04 16:11:12 +00:00
load: 'drone/drone:2.4.0@sha256:8c1c83ed0f68b00e16ca50b8769e6cf7ccb3c5ff390036eaec7e5fcb79c3cb92',
save: 'drone/drone:2.4.0'
2020-10-23 09:24:14 +00:00
},
{
2021-10-04 16:11:12 +00:00
load: 'drone/drone-runner-docker:1.6.3@sha256:0d6069fcb7a437d4526cca760e15d57e00ba3e7954a3fffd72b04e716a23312c',
save: 'drone/drone-runner-docker:1.6.3'
2020-10-23 09:24:14 +00:00
},
];
2020-08-26 23:14:17 +00:00
[
2020-08-26 23:28:07 +00:00
register,
registry(
config {
2020-09-24 13:57:50 +00:00
secrets: [
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD'
],
2020-10-23 09:24:14 +00:00
images: defs,
},
2020-10-23 09:24:14 +00:00
),
save(config)(
defs,
[],
),
print(config)(
[],
publicSecrets,
secretSecrets,
),
build(config)(
[],
),
2020-10-23 19:22:53 +00:00
droneImages(config),
deploy(config)(
2020-08-26 23:14:17 +00:00
[
2020-08-28 20:51:50 +00:00
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
2020-08-26 23:14:17 +00:00
'REGISTRY_PASSWORD',
2020-10-21 11:01:04 +00:00
'SCHEME',
2020-08-26 23:14:17 +00:00
],
publicSecrets,
2020-08-28 20:51:50 +00:00
secretSecrets,
[],
2020-08-26 23:28:07 +00:00
) {
trigger +: {
event +: [
'promote',
],
target +: [
'production',
],
},
},
2020-08-26 23:14:17 +00:00
]