This commit is contained in:
parent
23b0b7af9d
commit
eb58bcc7a7
151
.drone.yml
151
.drone.yml
@ -1,88 +1,81 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
name: build
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build-draft
|
||||
image: klakegg/hugo:0.53-alpine
|
||||
commands:
|
||||
- hugo -D -E -F --theme geeklab
|
||||
when:
|
||||
branch: [ draft ]
|
||||
event: [ push ]
|
||||
- name: build
|
||||
image: klakegg/hugo:0.53-alpine
|
||||
commands:
|
||||
- hugo --theme geeklab
|
||||
|
||||
- name: build
|
||||
image: klakegg/hugo:0.53-alpine
|
||||
commands:
|
||||
- hugo --theme geeklab
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
- name: publish
|
||||
image: plugins/s3-sync
|
||||
settings:
|
||||
access_key:
|
||||
from_secret: s3_access_key
|
||||
bucket: thegeeklab
|
||||
delete: true
|
||||
endpoint: https://sp.rknet.org
|
||||
path_style: true
|
||||
secret_key:
|
||||
from_secret: s3_secret_access_key
|
||||
source: exampleSite/public/
|
||||
strip_prefix: exampleSite/public/
|
||||
target: /legacy
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/tags/**
|
||||
|
||||
- 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 ]
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/tags/**
|
||||
- refs/pull/**
|
||||
|
||||
- name: publish
|
||||
image: appleboy/drone-scp
|
||||
pull: always
|
||||
settings:
|
||||
source: public/*
|
||||
target: /var/www/virtual/geeklab/html/geeklabor.de/
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
strip_components: 1
|
||||
rm: true
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
---
|
||||
kind: pipeline
|
||||
name: notifications
|
||||
|
||||
- name: cleanup
|
||||
image: appleboy/drone-ssh
|
||||
pull: always
|
||||
settings:
|
||||
host:
|
||||
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 ]
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
- name: notify
|
||||
image: plugins/matrix
|
||||
pull: always
|
||||
settings:
|
||||
homeserver: https://matrix.rknet.org
|
||||
roomid: MtidqQXWWAtQcByBhH:rknet.org
|
||||
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
||||
username:
|
||||
from_secret: matrix_username
|
||||
password:
|
||||
from_secret: matrix_password
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
steps:
|
||||
- name: matrix
|
||||
image: plugins/matrix
|
||||
settings:
|
||||
homeserver:
|
||||
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 }}"
|
||||
username:
|
||||
from_secret: matrix_username
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- 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
|
||||
/resources
|
||||
.vscode
|
||||
hugo
|
||||
|
@ -1,5 +1,7 @@
|
||||
# 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/).
|
||||
|
@ -1,4 +1,4 @@
|
||||
baseURL: "https://geeklabor.de/"
|
||||
baseURL: "https://legacy.thegeeklab.de/"
|
||||
languageCode: de-de
|
||||
defaultContentLanguage: de
|
||||
timeout: 30000
|
||||
|
@ -3,6 +3,9 @@
|
||||
{{ partial "head.html" . -}}
|
||||
<body>
|
||||
<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">
|
||||
<span class="site-header__icon"><i class="fas fa-flask"></i></span>
|
||||
<span class="site-header__title">{{ .Site.Title }}</span>
|
||||
|
@ -1,13 +1,5 @@
|
||||
<footer class="site-footer">
|
||||
<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">
|
||||
<i class="fas fa-user-lock"></i>
|
||||
<a class="site-footer__link" href='{{ "legal-notice" | relURL }}'>Impressum/Datenschutz</a>
|
||||
@ -19,6 +11,5 @@
|
||||
</div>
|
||||
<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/>
|
||||
Hosted on <a class="site-footer__link" href="https://uberspace.de/">Uberspace</a>
|
||||
</div>
|
||||
</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