portainer/.drone/drone-home.jsonnet

73 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-08-28 20:57:52 +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';
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
2020-10-23 09:32:35 +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';
local config = {
registry: '',
2020-10-23 09:32:35 +00:00
name: 'portainer',
root: 'stack',
};
2020-10-23 09:32:35 +00:00
local defs = [
{
load: 'portainer/portainer-ce:2.0.0-alpine@sha256:5555e1538aa4bc56d7ae85787278e4b972573b205e2ae260717ef17985e0e24f',
save: 'portainer/portainer-ce:2.0.0-alpine'
},
{
load: 'portainer/agent:2.0.0@sha256:8f994457bc32480bff351f0b1d371557238e69f5902037addfe76fa7bd930b9d',
save: 'portainer/agent:2.0.0'
},
];
2020-08-28 20:57:52 +00:00
[
register,
registry(
config {
secrets: [],
2020-10-23 09:32:35 +00:00
images: defs,
},
2020-10-23 09:32:35 +00:00
),
save(config)(
defs,
[],
),
print(config)(
[],
publicSecrets,
secretSecrets,
),
build(config)(
[],
),
deploy(config)(
2020-08-28 20:57:52 +00:00
[],
publicSecrets,
secretSecrets,
[
2020-10-22 15:52:10 +00:00
'DOMAIN',
2020-08-28 20:57:52 +00:00
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD',
],
) {
trigger +: {
event +: [
'promote',
],
target +: [
'production',
],
},
},
]