fix: settings for ssh
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
49db6e397c
commit
032c77497c
|
@ -12,9 +12,17 @@ steps:
|
|||
image: appleboy/drone-scp
|
||||
settings:
|
||||
command_timeout: 2m
|
||||
host:
|
||||
from_secret: ssh-host
|
||||
key:
|
||||
from_secret: ssh-key
|
||||
port:
|
||||
from_secret: ssh-port
|
||||
source:
|
||||
- .
|
||||
target: /stack/squid
|
||||
username:
|
||||
from_secret: ssh-user
|
||||
|
||||
- name: wait
|
||||
image: alpine
|
||||
|
@ -35,6 +43,12 @@ steps:
|
|||
- ssh_root_user
|
||||
- ssh_password
|
||||
- ssh_key
|
||||
host:
|
||||
from_secret: ssh-host
|
||||
key:
|
||||
from_secret: ssh-key
|
||||
port:
|
||||
from_secret: ssh-port
|
||||
script:
|
||||
- set -e
|
||||
- docker network prune -f
|
||||
|
@ -55,6 +69,8 @@ steps:
|
|||
- echo "$${SSH_PASSWORD}"
|
||||
- export SSH_KEY="$${SSH_KEY}"
|
||||
- echo "$${SSH_KEY}"
|
||||
username:
|
||||
from_secret: ssh-user
|
||||
environment:
|
||||
SSH_HOST:
|
||||
from_secret: ssh-host
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
local util = import 'util.libsonnet';
|
||||
{
|
||||
ssh: {
|
||||
host: util.fromSecret('ssh-host'),
|
||||
port: util.fromSecret('ssh-port'),
|
||||
username: util.fromSecret('ssh-user'),
|
||||
key: util.fromSecret('ssh-key'),
|
||||
settings +: {
|
||||
host: util.fromSecret('ssh-host'),
|
||||
port: util.fromSecret('ssh-port'),
|
||||
username: util.fromSecret('ssh-user'),
|
||||
key: util.fromSecret('ssh-key'),
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue