From 3eb883a1920474e6a40edd7beefe9ba8f7383c4a Mon Sep 17 00:00:00 2001 From: vrifox Date: Wed, 17 May 2023 13:16:09 +0200 Subject: [PATCH] use hugoci image --- .woodpecker.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b80af5e..0a0abc0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,25 +1,22 @@ pipeline: build-stable: - image: archlinux + image: code.cozy.town/vrifox/hugoci:latest commands: - - pacman -Syu --noconfirm hugo git - hugo --destination /woodpecker/build/ --minify --cleanDestinationDir when: branch: [ main ] build-dev: - image: archlinux + image: code.cozy.town/vrifox/hugoci:latest commands: - - pacman -Syu --noconfirm hugo git - hugo --destination /woodpecker/build/ --baseURL "https://dev.vrifox.cc/${CI_COMMIT_BRANCH}/${CI_COMMIT_SHA}/" --cleanDestinationDir when: branch: exclude: [ main ] upload-stable: - image: archlinux + image: code.cozy.town/vrifox/hugoci:latest commands: - - pacman -Syu --noconfirm openssh rsync - mkdir -p /root/.ssh - echo "$SSH_KEY" > /root/.ssh/id_ed25519 - chmod 700 /root/.ssh/id_ed25519 @@ -30,9 +27,8 @@ pipeline: branch: [ main ] upload-dev: - image: archlinux + image: code.cozy.town/vrifox/hugoci:latest commands: - - pacman -Syu --noconfirm openssh rsync - mkdir -p /root/.ssh - echo "$SSH_KEY" > /root/.ssh/id_ed25519 - chmod 700 /root/.ssh/id_ed25519