drone/.drone/drone-home.jsonnet

29 lines
571 B
Plaintext
Raw 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';
2020-08-26 23:14:17 +00:00
[
2020-08-26 23:28:07 +00:00
register,
2020-08-26 23:14:17 +00:00
deploy(
'drone',
'/stack/',
[
'LOCAL_DOCKER_REGISTRY',
'REGISTRY_PASSWORD',
],
publicSecrets,
secretSecrets
2020-08-26 23:28:07 +00:00
) {
trigger +: {
event +: [
'promote',
],
target +: [
'production',
],
},
},
2020-08-26 23:14:17 +00:00
]