From 9b8be4f9e9a75a15af7a83374a517824973901b1 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 24 Feb 2022 21:40:28 +0100 Subject: [PATCH] ci: exclude hidden files, fix permissions after scp --- .drone.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 84a5110..e39853b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,5 +15,27 @@ steps: from_secret: ps_ssh_user key: from_secret: ps_ssh_key - source: ./* + source: + - !.envrc + - !.git + - !.gitignore + - !.drone.yml + - !LICENSE.md + - !shell.nix + - ./* target: /data/www/pub.solar/matrix-domain/ + + - name: fix permissions + image: appleboy/drone-ssh + settings: + host: pub.solar + port: 2020 + username: + from_secret: ps_ssh_user + key: + from_secret: ps_ssh_key + envs: + - ps_ssh_user + script: + - export SSH_USER=$PS_SSH_USER + - chown -R $SSH_USER:991 /data/www/pub.solar/matrix-domain