fix continous deployment #13
3 changed files with 18 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -12,9 +12,9 @@
|
|||
<ul>
|
||||
{{- range .Site.Menus.main }}
|
||||
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
||||
<li class="active"><a class="hint-text" href="{{ .URL }}" data-title="{{ i18n .Identifier | default .Name }}">{{ partial "helpers/icons" .Identifier }}</a></li>
|
||||
<li class="active"><a class="hint-text" href="{{ .URL }}" data-title="{{ i18n .Identifier | default .Name }}" aria-label="{{ i18n .Identifier | default .Name }}">{{ partial "helpers/icons" .Identifier }}</a></li>
|
||||
{{ else }}
|
||||
<li><a class="hint-text" href="{{ .URL }}" data-title="{{ i18n .Identifier | default .Name }}">{{ partial "helpers/icons" .Identifier }}</a></li>
|
||||
<li><a class="hint-text" href="{{ .URL }}" data-title="{{ i18n .Identifier | default .Name }}" aria-label="{{ i18n .Identifier | default .Name }}">{{ partial "helpers/icons" .Identifier }}</a></li>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue