From 9b6ecc20e64ddace005890dd9c4802619747a5b9 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 5 Sep 2024 14:08:25 +0800 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7845e55..e946333 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -18,14 +18,11 @@ steps: - branch: master event: push commands: - # SSH Setup - - mkdir -p /root/.ssh/ - # Add SSH key to remote machine + - mkdir -p /root/.ssh/ # Add SSH key to remote machine - echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - # SSH to remote machine and execute commands - - ssh $"REMOTE_HOST" ' + - ssh $"REMOTE_HOST" ' # SSH to remote machine and execute commands cd "/mnt/nvme/files/docker projects/DRF-Template"; # Pull latest image and reset the DB docker-compose -f docker-compose.demo.yml down;