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:
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