ghost/.drone/drone-home.jsonnet

55 lines
1007 B
Plaintext
Raw Normal View History

2020-08-28 20:53:01 +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';
local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
2020-09-25 08:11:19 +00:00
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
local config = {
registry: '',
};
2020-08-28 20:53:01 +00:00
[
register,
2020-09-25 08:11:19 +00:00
registry(
config {
script: 'sh .drone/scripts/initialise-images.sh',
secrets: [],
},
) {
trigger +: {
event +: [
'promote',
],
target +: [
'registry',
],
},
},
deploy(config)(
2020-08-28 20:53:01 +00:00
'ghost',
'/stack/',
2020-10-22 15:16:00 +00:00
[
'THEME',
],
2020-08-28 20:53:01 +00:00
publicSecrets,
secretSecrets,
[
2020-10-22 15:07:21 +00:00
'SCHEME',
2020-08-28 20:53:01 +00:00
'DOMAIN',
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD',
],
) {
trigger +: {
event +: [
'promote',
],
target +: [
'production',
],
},
}
]