This commit is contained in:
parent
23b0b7af9d
commit
eb58bcc7a7
123
.drone.yml
123
.drone.yml
@ -1,88 +1,81 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: build
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-draft
|
|
||||||
image: klakegg/hugo:0.53-alpine
|
|
||||||
commands:
|
|
||||||
- hugo -D -E -F --theme geeklab
|
|
||||||
when:
|
|
||||||
branch: [ draft ]
|
|
||||||
event: [ push ]
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: klakegg/hugo:0.53-alpine
|
image: klakegg/hugo:0.53-alpine
|
||||||
commands:
|
commands:
|
||||||
- hugo --theme geeklab
|
- hugo --theme geeklab
|
||||||
when:
|
|
||||||
branch: [ master ]
|
|
||||||
event: [ push ]
|
|
||||||
|
|
||||||
- name: freeze
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
host:
|
|
||||||
from_secret: ssh_host
|
|
||||||
username:
|
|
||||||
from_secret: ssh_username
|
|
||||||
key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
script:
|
|
||||||
- cp -R /var/www/virtual/geeklab/html/geeklabor.de/ /var/www/virtual/geeklab/html/geeklabor_freeze/
|
|
||||||
- ln -sfn /var/www/virtual/geeklab/html/geeklabor_freeze /var/www/virtual/geeklab/geeklabor.de
|
|
||||||
when:
|
|
||||||
branch: [ master ]
|
|
||||||
event: [ push ]
|
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: appleboy/drone-scp
|
image: plugins/s3-sync
|
||||||
pull: always
|
|
||||||
settings:
|
settings:
|
||||||
source: public/*
|
access_key:
|
||||||
target: /var/www/virtual/geeklab/html/geeklabor.de/
|
from_secret: s3_access_key
|
||||||
host:
|
bucket: thegeeklab
|
||||||
from_secret: ssh_host
|
delete: true
|
||||||
username:
|
endpoint: https://sp.rknet.org
|
||||||
from_secret: ssh_username
|
path_style: true
|
||||||
key:
|
secret_key:
|
||||||
from_secret: ssh_key
|
from_secret: s3_secret_access_key
|
||||||
strip_components: 1
|
source: exampleSite/public/
|
||||||
rm: true
|
strip_prefix: exampleSite/public/
|
||||||
|
target: /legacy
|
||||||
when:
|
when:
|
||||||
branch: [ master ]
|
ref:
|
||||||
event: [ push ]
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
|
||||||
- name: cleanup
|
trigger:
|
||||||
image: appleboy/drone-ssh
|
ref:
|
||||||
pull: always
|
- refs/heads/master
|
||||||
settings:
|
- refs/tags/**
|
||||||
host:
|
- refs/pull/**
|
||||||
from_secret: ssh_host
|
|
||||||
username:
|
|
||||||
from_secret: ssh_username
|
|
||||||
key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
script:
|
|
||||||
- ln -sfn /var/www/virtual/geeklab/html/geeklabor.de /var/www/virtual/geeklab/geeklabor.de
|
|
||||||
- rm -rf /var/www/virtual/geeklab/html/geeklabor_freeze/
|
|
||||||
when:
|
|
||||||
branch: [ master ]
|
|
||||||
event: [ push ]
|
|
||||||
|
|
||||||
- name: notify
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: notifications
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: matrix
|
||||||
image: plugins/matrix
|
image: plugins/matrix
|
||||||
pull: always
|
|
||||||
settings:
|
settings:
|
||||||
homeserver: https://matrix.rknet.org
|
homeserver:
|
||||||
roomid: MtidqQXWWAtQcByBhH:rknet.org
|
from_secret: matrix_homeserver
|
||||||
|
password:
|
||||||
|
from_secret: matrix_password
|
||||||
|
roomid:
|
||||||
|
from_secret: matrix_roomid
|
||||||
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
||||||
username:
|
username:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
password:
|
|
||||||
from_secret: matrix_password
|
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: 1998604c6ac9e5a083a7a1e7c1b54f29ff7ca94914c25fb41fed5a95932b13b1
|
||||||
|
|
||||||
|
...
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/public
|
/public
|
||||||
/resources
|
/resources
|
||||||
.vscode
|
.vscode
|
||||||
|
hugo
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# geeklabor
|
# geeklabor
|
||||||
|
|
||||||
Source repository for my personal blog [geeklabor.de](https://geeklabor.de).
|
> This Blog was **archived** and moved to https://legacy.thegeeklab.de. You can find new articles at https://thegeeklab.de
|
||||||
|
|
||||||
|
Source repository for my personal blog geeklabor.de
|
||||||
|
|
||||||
The included theme is managed at its [own repository](https://gitea.rknet.org/xoxys/theme-geeklab) and merged by git-subtree. While the theme is licenced under the open [MIT Licence](https://gitea.rknet.org/xoxys/geeklabor/raw/branch/master/LICENSE), all articles in `./content` folder are licenced under a more restrictive [CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/).
|
The included theme is managed at its [own repository](https://gitea.rknet.org/xoxys/theme-geeklab) and merged by git-subtree. While the theme is licenced under the open [MIT Licence](https://gitea.rknet.org/xoxys/geeklabor/raw/branch/master/LICENSE), all articles in `./content` folder are licenced under a more restrictive [CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
baseURL: "https://geeklabor.de/"
|
baseURL: "https://legacy.thegeeklab.de/"
|
||||||
languageCode: de-de
|
languageCode: de-de
|
||||||
defaultContentLanguage: de
|
defaultContentLanguage: de
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
{{ partial "head.html" . -}}
|
{{ partial "head.html" . -}}
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
<div class="archive">
|
||||||
|
Das ist die archivierte Version des Blogs geeklabor.de. Aktuelle Beiträge findest du unter <a href="https://thegeeklab.de">https://thegeeklab.de</a>
|
||||||
|
</div>
|
||||||
<div class="site-header">
|
<div class="site-header">
|
||||||
<span class="site-header__icon"><i class="fas fa-flask"></i></span>
|
<span class="site-header__icon"><i class="fas fa-flask"></i></span>
|
||||||
<span class="site-header__title">{{ .Site.Title }}</span>
|
<span class="site-header__title">{{ .Site.Title }}</span>
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<div class="site-footer__block">
|
<div class="site-footer__block">
|
||||||
<span class="site-footer__button">
|
|
||||||
<i class="fas fa-rss"></i>
|
|
||||||
<a class="site-footer__link" href='{{ "feed.atom.xml" | relURL }}'>Feed</a>
|
|
||||||
</span>
|
|
||||||
<span class="site-footer__button">
|
|
||||||
<i class="fas fa-envelope"></i>
|
|
||||||
<a class="site-footer__link" href='{{ "contact" | relURL }}'>Kontakt</a>
|
|
||||||
</span>
|
|
||||||
<span class="site-footer__button">
|
<span class="site-footer__button">
|
||||||
<i class="fas fa-user-lock"></i>
|
<i class="fas fa-user-lock"></i>
|
||||||
<a class="site-footer__link" href='{{ "legal-notice" | relURL }}'>Impressum/Datenschutz</a>
|
<a class="site-footer__link" href='{{ "legal-notice" | relURL }}'>Impressum/Datenschutz</a>
|
||||||
@ -19,6 +11,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="site-footer__block">
|
<div class="site-footer__block">
|
||||||
Build with <a class="site-footer__link" href="https://gohugo.io/">Hugo</a> and <i class="fas fa-heart"></i><br/>
|
Build with <a class="site-footer__link" href="https://gohugo.io/">Hugo</a> and <i class="fas fa-heart"></i><br/>
|
||||||
Hosted on <a class="site-footer__link" href="https://uberspace.de/">Uberspace</a>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
2
themes/geeklab/static/default.min.css
vendored
2
themes/geeklab/static/default.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user