2020-08-19 21:00:32 +00:00
|
|
|
|
2020-08-13 18:36:40 +00:00
|
|
|
local secretSecrets = import 'lib/secret-secrets.libsonnet';
|
|
|
|
local publicSecrets = import 'lib/public-secrets.libsonnet';
|
2020-08-19 21:00:32 +00:00
|
|
|
|
|
|
|
local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet';
|
2020-08-28 15:23:47 +00:00
|
|
|
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
|
2020-08-13 18:36:40 +00:00
|
|
|
[
|
2020-08-28 15:23:47 +00:00
|
|
|
registry,
|
2020-08-19 21:00:32 +00:00
|
|
|
deploy(
|
|
|
|
'gitea',
|
|
|
|
'/stack/',
|
2020-08-28 15:23:47 +00:00
|
|
|
[],
|
|
|
|
publicSecrets,
|
|
|
|
secretSecrets,
|
2020-08-19 21:00:32 +00:00
|
|
|
[
|
2020-08-28 15:23:47 +00:00
|
|
|
'DOMAIN',
|
|
|
|
'REGISTRY_DOMAIN',
|
|
|
|
'REGISTRY_PORT',
|
2020-08-19 21:00:32 +00:00
|
|
|
'REGISTRY_PASSWORD',
|
2020-08-13 18:36:40 +00:00
|
|
|
],
|
2020-08-28 15:23:47 +00:00
|
|
|
) {
|
|
|
|
trigger +: {
|
|
|
|
event +: [
|
|
|
|
'promote',
|
|
|
|
],
|
|
|
|
target +: [
|
|
|
|
'production',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-08-13 18:36:40 +00:00
|
|
|
]
|