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';
|
2020-09-24 09:14:21 +00:00
|
|
|
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
|
2020-09-23 19:16:51 +00:00
|
|
|
|
|
|
|
local config = {
|
|
|
|
registry: '',
|
|
|
|
};
|
2020-08-26 23:14:17 +00:00
|
|
|
[
|
2020-08-26 23:28:07 +00:00
|
|
|
register,
|
2020-09-24 12:36:23 +00:00
|
|
|
registry(config) {
|
2020-09-24 09:13:28 +00:00
|
|
|
trigger +: {
|
|
|
|
event +: [
|
|
|
|
'promote',
|
|
|
|
],
|
|
|
|
target +: [
|
|
|
|
'registry',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-09-23 19:16:51 +00:00
|
|
|
deploy(config)(
|
2020-08-26 23:14:17 +00:00
|
|
|
'drone',
|
|
|
|
'/stack/',
|
|
|
|
[
|
2020-08-28 20:51:50 +00:00
|
|
|
'REGISTRY_DOMAIN',
|
|
|
|
'REGISTRY_PORT',
|
2020-08-26 23:14:17 +00:00
|
|
|
'REGISTRY_PASSWORD',
|
|
|
|
],
|
|
|
|
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
|
|
|
]
|