This commit is contained in:
Giles Bradshaw 2020-09-22 10:24:36 +01:00
parent 9cecf4228b
commit 5dc23e2ff4
1 changed files with 17 additions and 12 deletions

View File

@ -41,18 +41,21 @@ steps:
- drone_gitea_client_id
- drone_gitea_server
- drone_server_host
- ssh_host
- ssh_user
- ssh_port
- host
- user
- port
- password
- drone_gitea_client_secret
- drone_rpc_secret
- ssh_key
host: ${SSH_HOST}
key: ${SSH_KEY}
passphrase: ${SSH_PASSPHRASE}
port: ${SSH_PORT}
- key
host: ${HOST}
#key: ${SSH_KEY}
password: ${PASSWORD}
#passphrase: ${SSH_PASSPHRASE}
port: ${PORT}
script:
- rm -f env-drone
- cat /proc/sys/kernel/hostname
- "echo \"export REGISTRY_DOMAIN='$${REGISTRY_DOMAIN}'\" >> env-drone # \"registry-domain\""
- "echo \"export REGISTRY_PORT='$${REGISTRY_PORT}'\" >> env-drone # \"registry-port\""
- "echo \"export REGISTRY_PASSWORD='$${REGISTRY_PASSWORD}'\" >> env-drone # \"registry-password\""
@ -86,14 +89,16 @@ steps:
from_secret: registry-password
REGISTRY_PORT:
from_secret: registry-port
SSH_HOST:
HOST:
from_secret: ssh-host
SSH_KEY:
from_secret: ssh-key
SSH_PORT:
#KEY:
# from_secret: ssh-key
PORT:
from_secret: ssh-port
SSH_USER:
from_secret: ssh-user
PASSWORD:
from_secret: ssh-password
- name: scp
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47