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