fix continous deployment (#13)

Co-authored-by: vrifox <vrifox@vrifox.cc>
Reviewed-on: #13
This commit is contained in:
Vri 🌈 2023-04-05 23:53:25 +02:00 committed by vrifox
parent db6a8a13ef
commit 4c53ad19f5
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 16 additions and 5 deletions

View file

@ -1,9 +1,20 @@
pipeline:
build:
build-stable:
image: archlinux
commands:
- pacman -Syu --noconfirm hugo git
- hugo --destination /woodpecker/build/ --minify --cleanDestinationDir
when:
branch: [ main ]
build-dev:
image: archlinux
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
@ -26,8 +37,8 @@ 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-dev/CI_COMMIT_BRANCH/$CI_COMMIT_SHA/ --mkpath --checksum
- echo "The preview is now available on https://dev.vrifox.cc/CI_COMMIT_BRANCH/$CI_COMMIT_SHA/"
- 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
- echo "The preview is now available on https://dev.vrifox.cc/${CI_COMMIT_BRANCH}/${CI_COMMIT_SHA}/"
secrets: [ ssh_key, ssh_port, ssh_host ]
when:
branch:

View file

@ -1,12 +1,12 @@
@font-face {
font-family: "playfair";
src: local("Playfair"),
url("/fonts/playfair/PlayfairDisplay-Regular.woff2") format(woff2);
url("../fonts/playfair/PlayfairDisplay-Regular.woff2") format(woff2);
}
@font-face {
font-family: "playfair";
src: local("Playfair"),
url("/fonts/playfair/PlayfairDisplay-Bold.woff2") format(woff2);
url("../fonts/playfair/PlayfairDisplay-Bold.woff2") format(woff2);
font-weight: bold;
}