gitea/.drone/drone-home.jsonnet

61 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-08-28 21:11:43 +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 07:46:45 +00:00
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
2020-10-23 07:45:21 +00:00
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 07:46:45 +00:00
local config = {
registry: '',
2020-10-23 07:45:21 +00:00
name: 'gitea',
root: 'stack',
2020-09-25 07:46:45 +00:00
};
2020-10-23 07:45:21 +00:00
local defs = [
{
load: 'gitea/gitea:1.12.3-linux-amd64@sha256:38b8222941d8acffb7bb9c3fb0e9e0b657e06815a090f1fb11ed6900a3c9f384',
save: 'gitea/gitea:1.12.3-linux-amd64'
},
];
2020-08-28 21:11:43 +00:00
[
register,
2020-09-25 07:46:45 +00:00
registry(
config {
secrets: [],
2020-10-23 07:45:21 +00:00
images: defs,
2020-09-25 07:46:45 +00:00
},
2020-10-23 07:45:21 +00:00
),
save(config)(
defs,
[
'gitea',
],
),
print(config)(
[],
publicSecrets,
secretSecrets,
),
build(config)(
[],
),
2020-09-25 07:46:45 +00:00
deploy(config)(
2020-08-28 21:11:43 +00:00
[],
publicSecrets,
secretSecrets,
[
2020-10-22 09:12:30 +00:00
'SCHEME',
2020-08-28 21:11:43 +00:00
'DOMAIN',
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD',
],
2020-10-23 07:45:21 +00:00
),
2020-08-28 21:11:43 +00:00
]