From 3ce65bd78eb19bfa7c517c0fa76c974ac4c62b27 Mon Sep 17 00:00:00 2001 From: vrifox Date: Wed, 5 Apr 2023 22:17:53 +0200 Subject: [PATCH] change step to general dev step --- .woodpecker.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index da00e94..8c17c0a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,7 +5,7 @@ pipeline: - pacman -Syu --noconfirm hugo git - hugo --destination /woodpecker/build/ --minify --cleanDestinationDir - upload-main: + upload-stable: image: archlinux commands: - pacman -Syu --noconfirm openssh rsync @@ -18,7 +18,7 @@ pipeline: when: branch: main - upload-cicd: + upload-dev: image: archlinux commands: - pacman -Syu --noconfirm openssh rsync @@ -26,9 +26,7 @@ pipeline: - echo "$SSH_KEY" > /root/.ssh/id_ed25519 - chmod 700 /root/.ssh/id_ed25519 - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - - rsync -rv --delete -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ caddy@$SSH_HOST:/var/lib/caddy/woodpecker/vrifox.cc-cicd/ --mkpath --checksum + - rsync -rv --delete -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ caddy@$SSH_HOST:/var/lib/caddy/woodpecker/vrifox.cc-dev/CI_COMMIT_BRANCH/$CI_COMMIT_SHA/ --mkpath --checksum secrets: [ ssh_key, ssh_port, ssh_host ] - when: - branch: cicd - -branches: [ main, cicd ] + branch: + exclude: [ main ] \ No newline at end of file