guacamole/.drone/drone-home.jsonnet

108 lines
1.9 KiB
Plaintext
Raw Normal View History

2020-08-28 20:54:34 +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 09:08:40 +00:00
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
2020-10-22 20:16:14 +00:00
local save = import 'node_modules/@sigyl/jsonnet-drone/save.libsonnet';
2020-10-22 23:43:40 +00:00
local build = import 'node_modules/@sigyl/jsonnet-drone/build.libsonnet';
local print = import 'node_modules/@sigyl/jsonnet-drone/print.libsonnet';
2020-09-25 09:08:40 +00:00
local config = {
registry: '',
2020-10-22 22:55:57 +00:00
root: 'stack',
2020-10-22 22:18:47 +00:00
name: 'guacamole',
2020-09-25 09:08:40 +00:00
};
2020-10-22 20:16:14 +00:00
local defs = [
{
load: 'postgres:12.4',
2020-10-22 22:18:47 +00:00
save: 'postgres:12.4'
2020-10-22 20:16:14 +00:00
},
{
load: 'guacamole/guacd:1.2.0',
2020-10-22 22:18:47 +00:00
save: 'guacamole/guacd:1.2.0',
2020-10-22 20:16:14 +00:00
},
{
load: 'guacamole/guacamole:1.2.0',
2020-10-22 22:18:47 +00:00
save: 'guacamole/guacamole:1.2.0',
2020-10-22 20:16:14 +00:00
},
];
2020-08-28 20:54:34 +00:00
[
register,
2020-09-25 09:08:40 +00:00
registry(
config {
2020-10-22 18:43:24 +00:00
// script: 'sh .drone/scripts/initialise-images.sh',
2020-09-25 09:08:40 +00:00
secrets: [],
2020-10-22 20:16:14 +00:00
images: defs,
2020-09-25 09:08:40 +00:00
},
) {
trigger +: {
event +: [
'promote',
],
target +: [
'registry',
],
},
},
2020-10-22 20:16:14 +00:00
save(config)(
defs,
) {
trigger +: {
event +: [
'promote',
],
target +: [
'save',
],
},
},
2020-10-22 23:43:40 +00:00
print(config)(
[],
publicSecrets,
secretSecrets,
) {
trigger +: {
event +: [
'promote',
],
target +: [
'print',
],
},
},
build(config)(
[],
) {
trigger +: {
event +: [
'promote',
],
target +: [
'build',
],
},
},
2020-09-25 09:08:40 +00:00
deploy(config)(
2020-08-28 20:54:34 +00:00
[],
publicSecrets,
secretSecrets,
[
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD',
],
) {
trigger +: {
event +: [
'promote',
],
target +: [
'production',
],
},
},
]