This commit is contained in:
parent
aa2c4d3233
commit
7168b57c05
|
@ -41,19 +41,18 @@ steps:
|
||||||
- drone_gitea_client_id
|
- drone_gitea_client_id
|
||||||
- drone_gitea_server
|
- drone_gitea_server
|
||||||
- drone_server_host
|
- drone_server_host
|
||||||
|
- ssh_host
|
||||||
|
- ssh_user
|
||||||
|
- ssh_port
|
||||||
- drone_gitea_client_secret
|
- drone_gitea_client_secret
|
||||||
- drone_rpc_secret
|
- drone_rpc_secret
|
||||||
#host: ${SSH_HOST}
|
- ssh_key
|
||||||
#key: ${KEY}
|
host: ${SSH_HOST}
|
||||||
#password: ${PASSWORD}
|
key: ${SSH_KEY}
|
||||||
#passphrase: ${SSH_PASSPHRASE}
|
passphrase: ${SSH_PASSPHRASE}
|
||||||
#port: 2022
|
port: ${SSH_PORT}
|
||||||
script:
|
script:
|
||||||
- rm -f env-drone
|
- rm -f env-drone
|
||||||
- cat /proc/sys/kernel/hostname
|
|
||||||
- ip a
|
|
||||||
- pwd
|
|
||||||
- "echo \"export SSH_KEY1='$${SSH_KEY1}'\" >> env-drone # \"registry-domain\""
|
|
||||||
- "echo \"export REGISTRY_DOMAIN='$${REGISTRY_DOMAIN}'\" >> env-drone # \"registry-domain\""
|
- "echo \"export REGISTRY_DOMAIN='$${REGISTRY_DOMAIN}'\" >> env-drone # \"registry-domain\""
|
||||||
- "echo \"export REGISTRY_PORT='$${REGISTRY_PORT}'\" >> env-drone # \"registry-port\""
|
- "echo \"export REGISTRY_PORT='$${REGISTRY_PORT}'\" >> env-drone # \"registry-port\""
|
||||||
- "echo \"export REGISTRY_PASSWORD='$${REGISTRY_PASSWORD}'\" >> env-drone # \"registry-password\""
|
- "echo \"export REGISTRY_PASSWORD='$${REGISTRY_PASSWORD}'\" >> env-drone # \"registry-password\""
|
||||||
|
@ -67,8 +66,7 @@ steps:
|
||||||
- "echo \"export DRONE_GITEA_CLIENT_SECRET='$${DRONE_GITEA_CLIENT_SECRET}'\" >> env-drone # \"drone-gitea-client-secret\""
|
- "echo \"export DRONE_GITEA_CLIENT_SECRET='$${DRONE_GITEA_CLIENT_SECRET}'\" >> env-drone # \"drone-gitea-client-secret\""
|
||||||
- "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
|
username: ${SSH_USER}
|
||||||
username: giles
|
|
||||||
environment:
|
environment:
|
||||||
DOMAIN:
|
DOMAIN:
|
||||||
from_secret: domain
|
from_secret: domain
|
||||||
|
@ -90,14 +88,12 @@ steps:
|
||||||
from_secret: registry-port
|
from_secret: registry-port
|
||||||
SSH_HOST:
|
SSH_HOST:
|
||||||
from_secret: ssh-host
|
from_secret: ssh-host
|
||||||
#KEY:
|
SSH_KEY:
|
||||||
# from_secret: ssh-key
|
from_secret: ssh-key
|
||||||
SSH_PORT:
|
SSH_PORT:
|
||||||
from_secret: ssh-port
|
from_secret: ssh-port
|
||||||
SSH_USERNAME:
|
SSH_USER:
|
||||||
from_secret: ssh-user
|
from_secret: ssh-user
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue