composed secret printing
This commit is contained in:
parent
4ba904839d
commit
4324045b10
|
@ -181,18 +181,24 @@ local images = {
|
|||
],
|
||||
},
|
||||
},
|
||||
),/*
|
||||
images.ssh {
|
||||
),
|
||||
util.compose(
|
||||
std.map(
|
||||
function(s) util.envSet(s),
|
||||
publicSecrets,
|
||||
)
|
||||
)(
|
||||
images.ssh
|
||||
)
|
||||
{
|
||||
name: 'deploy portainer',
|
||||
"environment": environment(secrets),
|
||||
"settings": {
|
||||
"envs": [x.replace("-", "_") for x in secrets ],
|
||||
settings +: {
|
||||
username: util.fromSecret("ssh-root-user"),
|
||||
password: util.fromSecret("ssh-root-password"),
|
||||
script: [
|
||||
script +: [
|
||||
'set -e',
|
||||
'echo go',
|
||||
] +
|
||||
] /*+
|
||||
map(export, secrets) +
|
||||
[
|
||||
"export DRONE_REPO_LINK=$${{DRONE_GITEA_SERVER}}/{namespace}/{name}".format(name=ctx.repo.name, namespace=ctx.repo.namespace),
|
||||
|
@ -202,9 +208,9 @@ local images = {
|
|||
"docker stack rm {name}".format(name = name),
|
||||
"sleep 30",
|
||||
"docker stack deploy -c {filename} {name}".format(name= name, filename = filename),
|
||||
] + commands
|
||||
] + commands */
|
||||
}
|
||||
}*/
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue