From eb58bcc7a7518d44dce9d28513c6fb3787baf97c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 18 Jul 2020 22:42:16 +0200 Subject: [PATCH] prepare archiving --- .drone.yml | 151 ++++++++++---------- .gitignore | 1 + README.md | 4 +- config.yml | 2 +- themes/geeklab/layouts/_default/baseof.html | 3 + themes/geeklab/layouts/partials/footer.html | 9 -- themes/geeklab/static/default.min.css | 2 +- 7 files changed, 81 insertions(+), 91 deletions(-) diff --git a/.drone.yml b/.drone.yml index e541371..3118c46 100644 --- a/.drone.yml +++ b/.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 }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
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 }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
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 + +... diff --git a/.gitignore b/.gitignore index bf4a4ab..1b7df2e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /public /resources .vscode +hugo diff --git a/README.md b/README.md index 8e5fabe..356489a 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/config.yml b/config.yml index f8dfddd..d654960 100644 --- a/config.yml +++ b/config.yml @@ -1,4 +1,4 @@ -baseURL: "https://geeklabor.de/" +baseURL: "https://legacy.thegeeklab.de/" languageCode: de-de defaultContentLanguage: de timeout: 30000 diff --git a/themes/geeklab/layouts/_default/baseof.html b/themes/geeklab/layouts/_default/baseof.html index 3c178a2..8cdab1a 100644 --- a/themes/geeklab/layouts/_default/baseof.html +++ b/themes/geeklab/layouts/_default/baseof.html @@ -3,6 +3,9 @@ {{ partial "head.html" . -}}
+
+ Das ist die archivierte Version des Blogs geeklabor.de. Aktuelle Beiträge findest du unter https://thegeeklab.de +