Moved ssh username and address to drone variables.
This commit is contained in:
@@ -25,6 +25,8 @@ steps:
|
|||||||
pull: true
|
pull: true
|
||||||
secrets:
|
secrets:
|
||||||
- ssh_key
|
- ssh_key
|
||||||
|
- user
|
||||||
|
- host_address
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@@ -33,8 +35,10 @@ steps:
|
|||||||
- drone-test
|
- drone-test
|
||||||
status: success
|
status: success
|
||||||
settings:
|
settings:
|
||||||
host: 10.0.0.58
|
host:
|
||||||
username: root
|
from_secret: host_address
|
||||||
|
username:
|
||||||
|
from_secret: user
|
||||||
key:
|
key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
command_timeout: 600s
|
command_timeout: 600s
|
||||||
|
|||||||
Reference in New Issue
Block a user