73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
|
|
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';
|
|
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: '',
|
|
name: 'portainer',
|
|
root: 'stack',
|
|
};
|
|
|
|
|
|
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'
|
|
},
|
|
];
|
|
|
|
|
|
[
|
|
register,
|
|
registry(
|
|
config {
|
|
secrets: [],
|
|
images: defs,
|
|
},
|
|
),
|
|
save(config)(
|
|
defs,
|
|
[],
|
|
),
|
|
print(config)(
|
|
[],
|
|
publicSecrets,
|
|
secretSecrets,
|
|
),
|
|
build(config)(
|
|
[],
|
|
),
|
|
deploy(config)(
|
|
[],
|
|
publicSecrets,
|
|
secretSecrets,
|
|
[
|
|
'DOMAIN',
|
|
'REGISTRY_DOMAIN',
|
|
'REGISTRY_PORT',
|
|
'REGISTRY_PASSWORD',
|
|
],
|
|
) {
|
|
trigger +: {
|
|
event +: [
|
|
'promote',
|
|
],
|
|
target +: [
|
|
'production',
|
|
],
|
|
},
|
|
},
|
|
]
|