From 039529d7811e44485555ea1407d4e89ac61d4d77 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 26 Sep 2022 21:58:32 +0100 Subject: [PATCH] get user and host from secrets --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a341adc..41a5e8c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,8 @@ steps: environment: HOST: from_secret: host - USERNAME: - from_secret: username + USER: + from_secret: user SSH_KEY: from_secret: ssh_key REPO: https://git.pizzawednesday.club/ktyl/period3.xyz @@ -27,5 +27,5 @@ steps: # skip key checking - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - cat ~/.ssh/config - - ssh gemini@period3.xyz "[[ -d gemini/content ]] && rm -r gemini/content" + - ssh "$${USER}@$${HOST}" "[[ -d gemini/content ]] && rm -r gemini/content" - rsync -rP content/* gemini@period3.xyz:gemini/content