.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6131b0bdbf
commit
3d484408d0
|
@ -113,17 +113,13 @@ local images = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ssh: {
|
ssh: {
|
||||||
image: 'appleboy/drone-ssh',
|
image: 'appleboy/drone-ssh',
|
||||||
environment: {
|
|
||||||
OOO: 'ahahahahaha',
|
|
||||||
},
|
|
||||||
settings: {
|
settings: {
|
||||||
host: util.fromSecret("ssh-host"),
|
host: util.fromSecret("ssh-host"),
|
||||||
port: util.fromSecret("ssh-port"),
|
port: util.fromSecret("ssh-port"),
|
||||||
username: util.fromSecret("ssh-user"),
|
username: util.fromSecret("ssh-user"),
|
||||||
password: util.fromSecret("ssh-password"),
|
password: util.fromSecret("ssh-password"),
|
||||||
envs: [
|
envs: [
|
||||||
'ooo',
|
|
||||||
'drone_tag',
|
'drone_tag',
|
||||||
'drone_commit',
|
'drone_commit',
|
||||||
'drone_build_number',
|
'drone_build_number',
|
||||||
|
@ -204,18 +200,11 @@ local images = {
|
||||||
function(s) function(step) step {
|
function(s) function(step) step {
|
||||||
settings +: {
|
settings +: {
|
||||||
script +: [
|
script +: [
|
||||||
'echo "export %(environment)s=\'$${%(environment)s}\'"' % {
|
|
||||||
environment: util.environment(s),
|
|
||||||
file: 'thisfile',
|
|
||||||
secret: util.secret(s),
|
|
||||||
},
|
|
||||||
"export D=${DRONE_COMMIT}",
|
|
||||||
"export O=$${O}",
|
|
||||||
"export OOO=$${OOO}",
|
|
||||||
"echo $${OOO}",
|
|
||||||
"export %(env)s='$${%(env)s}'" % {
|
"export %(env)s='$${%(env)s}'" % {
|
||||||
env: util.environment(s),
|
env: util.environment(s),
|
||||||
},
|
},
|
||||||
|
"echo '$${%(env)s}'"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -225,20 +214,12 @@ local images = {
|
||||||
(
|
(
|
||||||
images.ssh {
|
images.ssh {
|
||||||
name: 'deploy portainer',
|
name: 'deploy portainer',
|
||||||
environment +: {
|
|
||||||
O: 'ahahahahaha',
|
|
||||||
},
|
|
||||||
settings +: {
|
settings +: {
|
||||||
envs +: [
|
|
||||||
'o',
|
|
||||||
],
|
|
||||||
//username: util.fromSecret("ssh-root-user"),
|
//username: util.fromSecret("ssh-root-user"),
|
||||||
//password: util.fromSecret("ssh-root-password"),
|
//password: util.fromSecret("ssh-root-password"),
|
||||||
script +: [
|
script +: [
|
||||||
'set -e',
|
'set -e',
|
||||||
'echo go',
|
'echo go',
|
||||||
'export OOO=${OOO}',
|
|
||||||
'export O=${O}',
|
|
||||||
] /*+
|
] /*+
|
||||||
map(export, secrets) +
|
map(export, secrets) +
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue