update website
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-04-23 22:21:57 +02:00
parent c5d52e5e2b
commit a735f0773f
Signed by: adoralaura
GPG key ID: E2E0F82107536C1B
7 changed files with 85 additions and 58 deletions

View file

@ -1,5 +1,6 @@
{ {
"yaml.schemas": { "yaml.schemas": {
"https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json": "file:///home/laura/git/lila-network-website/static/.woodpecker/deploy.yml" "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json": "file:///home/laura/git/lila-network-website/static/.woodpecker/deploy.yml",
"https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json": "file:///Users/laura/git/lila.network/lila-website/.woodpecker/deploy.yml"
} }
} }

View file

@ -1,49 +1,47 @@
# hugo.yml
#
# Takes a repository with Hugo source, generates the static site and
# pushes the result to Codeberg pages
#
# Needs a codeberg access token (codeberg_token) as a secret in Woodpecker config
# Also uses another secret (mail) with email address for git config
#
# .domains file in the repository is copied to the output branch so custom domains work
#
# The HUGO_OUTPUT variable must be set to the build output folder configured in Hugo
#
# Exclude page pipeline to be run on "pages" branch
#when:
# branch:
# exclude: pages
# Recursive cloning is used to fully clone the themes given as Git submodules
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
steps: steps:
# Build hugo static files
build: build:
image: golang:1.21-bookworm image: golang:1.22-bookworm
environment: environment:
- HUGO_VERSION=0.120.4 - HUGO_VERSION=0.123.4
- TZ=Europe/Berlin
when: when:
event: push - event: push
branch: [main, staging]
commands: commands:
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb - wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb
- hugo --minify --destination ./public - hugo --minify --destination ./public
upload:
netlify-deploy: image: alpine:latest
image: node:alpine
when:
event: push
secrets: secrets:
- NETLIFY_AUTH_TOKEN - RSYNC_SSHKEY
- NETLIFY_SITE_ID - RSYNC_TARGET_SERVER
- RSYNC_TARGET_USER
environment:
- TARGET_PATH=/webroot/adora.codes
when:
- event: push
branch: main
commands: commands:
- npm install netlify-cli -g - apk add --update --no-cache openssh rsync git
- cd public - mkdir -p $HOME/.ssh
- netlify deploy --prod --dir . - echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519
- chmod 0600 $HOME/.ssh/id_ed25519
- ssh-keyscan -t ed25519 $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts
- rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH
#deploy-production:
# # image: node:alpine
# image: lauralani/netlify-cli:latest
# pull: true
# when:
# - event: push
# branch: main
# secrets:
# - NETLIFY_AUTH_TOKEN
# - NETLIFY_SITE_ID
# commands:
# # - npm install netlify-cli -g
# - netlify deploy --prod --dir ./public

View file

@ -3,23 +3,27 @@ languageCode = "en"
defaultContentLanguage = "en" defaultContentLanguage = "en"
theme = "lynx" theme = "lynx"
title = "lila.network" title = "lila.network"
copyright = "Built by [@lauralani@lila.network](https://social.lila.network/@lauralani), hosted at [Codeberg](https://codeberg.org/lila-network/website)" copyright = "Built by [✨ Adora ✨](https://social.lila.network/@lauralani), source code available at [code.lila.network/lila-network/website](https://code.lila.network/lila-network/website) and hosted by Netlify"
enableEmoji = true enableEmoji = true
disableKinds = [ "taxonomy", "term" ] disableKinds = [ "taxonomy", "term" ]
[author] [author]
name = "lila.network" name = "lila.network"
headline = "A network of awesome people" headline = "Services available for use by you awesome lot <3"
image = "img/purple-heart.png" # path relative to static directory image = "img/purple-heart.png" # path relative to static directory
links = [ links = [
{ mastodon = { href = "https://social.lila.network", text = "Fediverse Mastodon Instance" } }, { immich = { href = "https://photos.lila.network", text = "[SSO] Photo Gallery (https://photos.lila.network)"} },
{ forgejo = { href = "https://code.lila.network", text = "Purple Forgejo Git Instance" } }, { mealie = { href = "https://mealie.lila.network", text = "[SSO] Cookbook (https://mealie.lila.network)"} },
{ custom-ci = { href = "https://ci.lila.network", text = "lila.network Continuous Integration" } }, { paperless = { href = "https://paperless.lila.network", text = "[SSO] Document Store (https://paperless.lila.network)"} },
{ nextcloud = { href = "https://cloud.lila.network", text = "lila.network Nextcloud" } }, { grafana = { href = "https://grafana.lila.network", text = "[SSO] Monitoring System (https://grafana.lila.network)"} },
{ games = { href = "https://games.lila.network", text = "🎮 [SSO] Game Status Page (https://games.lila.network)"} },
{ custom-status = { href = "https://status.lila.network", text = "lila.network Status Page" } }, { nextcloud = { href = "https://cloud.lila.network", text = "Nextcloud (https://cloud.lila.network)"} },
{ mastodon = { href = "https://social.lila.network", text = "Mastodon (https://social.lila.network)"} },
{ git = { href = "https://code.lila.network", text = "Source Code Management (https://code.lila.network)"} },
{ ci = { href = "https://ci.lila.network", text = "Continuous Integration (https://ci.lila.network)"} },
{ status = { href = "https://status.lila.network", text = "Service Status Page (https://status.lila.network)" } },
] ]
[module.hugoVersion] [module.hugoVersion]

View file

@ -1,14 +1,36 @@
.link-custom-status {
background: linear-gradient(45deg,
rgba(131, 58, 180, 1) 25%,
rgb(253, 29, 29) 100%);
}
.link-ci {
.link-custom-ci {
background: green; background: green;
} }
.link-nextcloud { .link-nextcloud {
background: #007bc0; background: #007bc0;
} }
.link-immich {
background: #accbfa;
color: #242852;
}
.link-mealie {
background: #e58325;
}
.link-paperless {
background: #17541f;
}
.link-git {
background: #d40000;
}
.link-games {
background: #00ffff;
color: #0C356A;
}
.link-grafana {
background: linear-gradient(0deg,
#f05a28 25%,
#fabe0d 100%);
}

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><defs><clipPath id="a"><path d="M0 .113h91.887V92H0Zm0 0"/></clipPath></defs><g clip-path="url(#a)"><path style="stroke:none;fill-rule:nonzero;fill:#ffffff;fill-opacity:1" d="M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371"/></g></svg>

After

Width:  |  Height:  |  Size: 820 B

View file

@ -1 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="lastfm" class="svg-inline--fa fa-lastfm fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M225.8 367.1l-18.8-51s-30.5 34-76.2 34c-40.5 0-69.2-35.2-69.2-91.5 0-72.1 36.4-97.9 72.1-97.9 66.5 0 74.8 53.3 100.9 134.9 18.8 56.9 54 102.6 155.4 102.6 72.7 0 122-22.3 122-80.9 0-72.9-62.7-80.6-115-92.1-25.8-5.9-33.4-16.4-33.4-34 0-19.9 15.8-31.7 41.6-31.7 28.2 0 43.4 10.6 45.7 35.8l58.6-7c-4.7-52.8-41.1-74.5-100.9-74.5-52.8 0-104.4 19.9-104.4 83.9 0 39.9 19.4 65.1 68 76.8 44.9 10.6 79.8 13.8 79.8 45.7 0 21.7-21.1 30.5-61 30.5-59.2 0-83.9-31.1-97.9-73.9-32-96.8-43.6-163-161.3-163C45.7 113.8 0 168.3 0 261c0 89.1 45.7 137.2 127.9 137.2 66.2 0 97.9-31.1 97.9-31.1z"></path></svg> <svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="lastfm" class="svg-inline--fa fa-lastfm fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#ffffff" d="M225.8 367.1l-18.8-51s-30.5 34-76.2 34c-40.5 0-69.2-35.2-69.2-91.5 0-72.1 36.4-97.9 72.1-97.9 66.5 0 74.8 53.3 100.9 134.9 18.8 56.9 54 102.6 155.4 102.6 72.7 0 122-22.3 122-80.9 0-72.9-62.7-80.6-115-92.1-25.8-5.9-33.4-16.4-33.4-34 0-19.9 15.8-31.7 41.6-31.7 28.2 0 43.4 10.6 45.7 35.8l58.6-7c-4.7-52.8-41.1-74.5-100.9-74.5-52.8 0-104.4 19.9-104.4 83.9 0 39.9 19.4 65.1 68 76.8 44.9 10.6 79.8 13.8 79.8 45.7 0 21.7-21.1 30.5-61 30.5-59.2 0-83.9-31.1-97.9-73.9-32-96.8-43.6-163-161.3-163C45.7 113.8 0 168.3 0 261c0 89.1 45.7 137.2 127.9 137.2 66.2 0 97.9-31.1 97.9-31.1z"></path></svg>

Before

Width:  |  Height:  |  Size: 801 B

After

Width:  |  Height:  |  Size: 797 B

View file

@ -0,0 +1 @@
<svg height="60" preserveAspectRatio="xMidYMid meet" viewBox="0 0 45 45" width="60" xmlns="http://www.w3.org/2000/svg"><g fill="#e58325" transform="matrix(.00666404 0 0 -.00666404 -1.048555 45.590899)"><path d="m4948 6348c-662-677-956-982-1123-1168-32-36-62-67-65-70s-31-35-62-71c-127-151-157-391-77-600 26-68 117-233 137-249 4-3 25-25 47-48l40-42-1679-1679-1678-1678 244-246 243-247 1200 1200 1199 1199 1192-1192c656-655 1197-1193 1202-1195 10-3 473 459 480 478 2 5-534 547-1191 1204l-1194 1195 185 183c250 248 262 258 296 258 11 0 41-19 66-43 139-131 331-199 538-190 160 6 273 63 475 236 132 114 199 179 845 822l642 640-161 163c-88 90-162 162-164 160-3-1-256-254-564-561l-560-559-160 158c-89 87-161 162-161 165 0 4 251 259 559 567l558 560-159 161c-87 89-161 161-164 161s-258-252-566-559l-560-560-164 162-164 162 560 560c308 308 560 563 560 566 0 5-194 202-292 297l-34 32z"/><path d="m489 6349c-108-115-190-257-254-440-20-57-35-104-34-104s-3-22-9-50c-42-181-46-400-11-568 72-343 178-493 781-1102 199-202 1018-1020 1054-1055 6-5 974 962 974 973 0 9-1704 1713-2130 2130-156 152-291 277-299 277-9 0-41-27-72-61z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB