use hugoci image

This commit is contained in:
Vri 🌈 2023-05-17 13:16:09 +02:00
parent 4c53ad19f5
commit 3eb883a192
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -1,25 +1,22 @@
pipeline: pipeline:
build-stable: build-stable:
image: archlinux image: code.cozy.town/vrifox/hugoci:latest
commands: commands:
- pacman -Syu --noconfirm hugo git
- hugo --destination /woodpecker/build/ --minify --cleanDestinationDir - hugo --destination /woodpecker/build/ --minify --cleanDestinationDir
when: when:
branch: [ main ] branch: [ main ]
build-dev: build-dev:
image: archlinux image: code.cozy.town/vrifox/hugoci:latest
commands: commands:
- pacman -Syu --noconfirm hugo git
- hugo --destination /woodpecker/build/ --baseURL "https://dev.vrifox.cc/${CI_COMMIT_BRANCH}/${CI_COMMIT_SHA}/" --cleanDestinationDir - hugo --destination /woodpecker/build/ --baseURL "https://dev.vrifox.cc/${CI_COMMIT_BRANCH}/${CI_COMMIT_SHA}/" --cleanDestinationDir
when: when:
branch: branch:
exclude: [ main ] exclude: [ main ]
upload-stable: upload-stable:
image: archlinux image: code.cozy.town/vrifox/hugoci:latest
commands: commands:
- pacman -Syu --noconfirm openssh rsync
- mkdir -p /root/.ssh - mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_ed25519 - echo "$SSH_KEY" > /root/.ssh/id_ed25519
- chmod 700 /root/.ssh/id_ed25519 - chmod 700 /root/.ssh/id_ed25519
@ -30,9 +27,8 @@ pipeline:
branch: [ main ] branch: [ main ]
upload-dev: upload-dev:
image: archlinux image: code.cozy.town/vrifox/hugoci:latest
commands: commands:
- pacman -Syu --noconfirm openssh rsync
- mkdir -p /root/.ssh - mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_ed25519 - echo "$SSH_KEY" > /root/.ssh/id_ed25519
- chmod 700 /root/.ssh/id_ed25519 - chmod 700 /root/.ssh/id_ed25519