guacamole/.drone/drone-home.jsonnet

65 lines
1.6 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';
local save = import 'node_modules/@sigyl/jsonnet-drone/save.libsonnet';
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: '',
root: 'stack',
name: 'guacamole',
2020-09-25 09:08:40 +00:00
};
local defs = [
{
2020-10-23 08:14:05 +00:00
load: 'postgres:12.4@sha256:c713cbd0e39ee3450bec6fa44e0f6236879b3dac79adc2d0417582785b8776b2',
save: 'postgres:12.4'
},
{
2020-10-23 08:14:05 +00:00
load: 'guacamole/guacd:1.2.0@sha256:6ba0abac865bd7efd55dd52085ba8eb4f57910e33cea5ae6c4135a84f6a8bcdf',
save: 'guacamole/guacd:1.2.0',
},
{
2020-10-23 08:14:05 +00:00
load: 'guacamole/guacamole:1.2.0@sha256:6eb0b854e8e145df8f9220b92e51d52e9ff18c4262de20d56ccc62a4dad835b9',
save: 'guacamole/guacamole:1.2.0',
},
];
2020-08-28 20:54:34 +00:00
[
register,
2020-09-25 09:08:40 +00:00
registry(
config {
// script: 'sh .drone/scripts/initialise-images.sh',
2020-09-25 09:08:40 +00:00
secrets: [],
images: defs,
2020-09-25 09:08:40 +00:00
},
),
save(config)(
defs,
[
'guacamole-postgresql',
],
),
print(config)(
[],
publicSecrets,
secretSecrets,
),
build(config)(
[],
),
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',
],
),
2020-08-28 20:54:34 +00:00
]