prepare archiving
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2020-07-18 22:42:16 +02:00
parent 23b0b7af9d
commit eb58bcc7a7
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
7 changed files with 81 additions and 91 deletions

View File

@ -1,88 +1,81 @@
--- ---
kind: pipeline kind: pipeline
name: default name: build
platform:
os: linux
arch: amd64
steps: steps:
- name: build-draft - name: build
image: klakegg/hugo:0.53-alpine image: klakegg/hugo:0.53-alpine
commands: commands:
- hugo -D -E -F --theme geeklab - hugo --theme geeklab
when:
branch: [ draft ]
event: [ push ]
- name: build - name: publish
image: klakegg/hugo:0.53-alpine image: plugins/s3-sync
commands: settings:
- hugo --theme geeklab access_key:
when: from_secret: s3_access_key
branch: [ master ] bucket: thegeeklab
event: [ push ] 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 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:
- 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 ---
image: appleboy/drone-scp kind: pipeline
pull: always name: notifications
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 ]
- name: cleanup platform:
image: appleboy/drone-ssh os: linux
pull: always arch: amd64
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 ]
- name: notify steps:
image: plugins/matrix - name: matrix
pull: always image: plugins/matrix
settings: settings:
homeserver: https://matrix.rknet.org homeserver:
roomid: MtidqQXWWAtQcByBhH:rknet.org from_secret: matrix_homeserver
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}" password:
username: from_secret: matrix_password
from_secret: matrix_username roomid:
password: from_secret: matrix_roomid
from_secret: matrix_password template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
when: username:
status: from_secret: matrix_username
- success when:
- failure status:
- success
- failure
trigger:
ref:
- refs/heads/master
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
hmac: 1998604c6ac9e5a083a7a1e7c1b54f29ff7ca94914c25fb41fed5a95932b13b1
...

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/public /public
/resources /resources
.vscode .vscode
hugo

View File

@ -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/).

View File

@ -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

View File

@ -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>

View File

@ -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>

File diff suppressed because one or more lines are too long