This commit is contained in:
Giles Bradshaw 2020-09-22 11:08:01 +01:00
parent fc80a55d38
commit 917dcf8be3
1 changed files with 5 additions and 8 deletions

View File

@ -43,11 +43,11 @@ steps:
- drone_server_host
- drone_gitea_client_secret
- drone_rpc_secret
host: ${SSH_HOST}
#host: ${SSH_HOST}
#key: ${SSH_KEY}
#password: ${PASSWORD}
#passphrase: ${SSH_PASSPHRASE}
port: 2022
#port: 2022
script:
- rm -f env-drone
- cat /proc/sys/kernel/hostname
@ -68,7 +68,6 @@ steps:
- "echo \"export DRONE_RPC_SECRET='$${DRONE_RPC_SECRET}'\" >> env-drone # \"drone-rpc-secret\""
- "echo \"export SSH_KEY='$${SSH_KEY}'\" >> env-drone # \"ssh-key\""
- cat env-drone
username: ${SSH_USER}
environment:
DOMAIN:
from_secret: domain
@ -90,15 +89,13 @@ steps:
from_secret: registry-port
SSH_HOST:
from_secret: ssh-host
SSH_KEY1:
SSH_KEY:
from_secret: ssh-key
SSH_PORT:
from_secret: ssh-port
SSH_USER:
SSH_USERNAME:
from_secret: ssh-user
SSH_PASSWORD:
from_secret: ssh-password
- name: scp
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47
settings: