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