From c9d91569db88e23a60a45085ce0eb5fc1e70fb07 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 22 Sep 2020 11:46:06 +0100 Subject: [PATCH] . --- .drone/drone-home.yml | 3 +++ .drone/drone.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 9ae45d7..a6b8ecf 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -66,6 +66,7 @@ steps: - "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 SSH_KEY='$${SSH_KEY}'\" >> env-drone # \"ssh-key\"" + username: ${SSH_USER} environment: DOMAIN: from_secret: domain @@ -105,6 +106,7 @@ steps: source: - . target: /stack/drone + username: ${SSH_USER} - name: wait image: alpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1 @@ -175,6 +177,7 @@ steps: - sh .drone/login.sh - sh .drone/pull.sh - sh .drone/deploy.sh + username: ${SSH_USER} environment: DOMAIN: from_secret: domain diff --git a/.drone/drone.yml b/.drone/drone.yml index f082f31..967e11b 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -66,6 +66,7 @@ steps: - "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 SSH_KEY='$${SSH_KEY}'\" >> env-drone # \"ssh-key\"" + username: ${SSH_USER} environment: DOMAIN: from_secret: domain @@ -105,6 +106,7 @@ steps: source: - . target: /stack/drone + username: ${SSH_USER} - name: wait image: alpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1 @@ -175,6 +177,7 @@ steps: - sh .drone/login.sh - sh .drone/pull.sh - sh .drone/deploy.sh + username: ${SSH_USER} environment: DOMAIN: from_secret: domain