From 819f6ea1641e53963887f7b7310d8bfc9a051c15 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 26 May 2025 12:04:34 +0200 Subject: [PATCH] woodpecker test 351 --- .woodpecker/CLEAN-build_and_copy_website.yaml | 61 +++++++++++++++++++ ....yaml => build_and_copy_website-FKT-y-aml} | 0 .../posts/2025-05-04-HackathOERn/index.md | 5 ++ 3 files changed, 66 insertions(+) create mode 100644 .woodpecker/CLEAN-build_and_copy_website.yaml rename .woodpecker/{build_and_copy_website.yaml => build_and_copy_website-FKT-y-aml} (100%) diff --git a/.woodpecker/CLEAN-build_and_copy_website.yaml b/.woodpecker/CLEAN-build_and_copy_website.yaml new file mode 100644 index 0000000..223fc95 --- /dev/null +++ b/.woodpecker/CLEAN-build_and_copy_website.yaml @@ -0,0 +1,61 @@ +when: + - branch: [main, automation-test] + event: push + path: + include: ['Website/**'] + on_empty: false + +steps: + - name: log_start_time + image: alpine + commands: + - date -I'seconds' + + - name: build_by_hugo + image: alpine ##alpine:3.21 # hugomods/hugo # vs image: alpine / welche version? + commands: + - date -I'seconds' + - cat /etc/alpine-release + - apk add --no-cache hugo + - hugo version + - cat Website/hugo.yaml + - sed -i 's+https://oer.community/+https://twdy.oer.community/+g' Website/hugo.yaml + - head Website/hugo.yaml + - mkdir Website/PROD + - hugo -s Website -d PROD --logLevel debug + - ls -la Website/PROD/index.html + + - if grep -E "Team vollständig" Website/PROD/index.html; then echo "Blog Teamseite"; else echo "Webseite Startseite"; fi + - echo $? + + - name: copy_to_server + image: alpine + environment: + SSH_HOST: + from_secret: ssh_host + SSH_USER: + from_secret: ssh_user + SSH_KEY: + from_secret: ssh_key + SSH_PORT: + from_secret: ssh_port + DOMAIN_FOLDER: + from_secret: domain_folder + TARGET_PATH: + from_secret: target_path + + commands: + - apk add --no-cache openssh + - mkdir -p ~/.ssh + - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey + - chmod 600 ~/.ssh/deployKey + - ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts + - chmod 600 ~/.ssh/known_hosts + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_begin_copy_$(date +'%Y-%m-%d_%T')" + - scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/ + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_end_copy_$(date +'%Y-%m-%d_%T')" + + - name: log_end_time + image: alpine + commands: + - date -I'seconds' diff --git a/.woodpecker/build_and_copy_website.yaml b/.woodpecker/build_and_copy_website-FKT-y-aml similarity index 100% rename from .woodpecker/build_and_copy_website.yaml rename to .woodpecker/build_and_copy_website-FKT-y-aml diff --git a/Website/content/posts/2025-05-04-HackathOERn/index.md b/Website/content/posts/2025-05-04-HackathOERn/index.md index 1d5a0b9..9718295 100644 --- a/Website/content/posts/2025-05-04-HackathOERn/index.md +++ b/Website/content/posts/2025-05-04-HackathOERn/index.md @@ -74,6 +74,11 @@ tags: # Ein Törn hat doch nichts mit einem Hackatörn zu tun.... +doch doch sicherlich +wir segeln um die Wette gegeneinander mit dem Wind an den Rand der Scheibe + +---- + Wie können wir digitale Infrastrukturen stärken, um Open Educational Resources (OER) und Open Educational Practices (OEP) in Deutschland voranzubringen? Mit dieser zentralen Frage im Gepäck kamen vom 28. bis 30. April 2025 Expert:innen, Entwickler:innen und OER-Interessierte beim ersten [HackathOERn von edu-sharing](https://edu-sharing-network.org/projekt-hackathoern/) in den inspirierenden Räumen der [Gesellschaft für wissenschaftliche Datenverarbeitung mbH (GWDG)](https://gwdg.de/) in Göttingen zusammen. Im Fokus standen: Vernetzung, Wissenstransfer und das gemeinsame Tüfteln an digitalen Lösungen und ersten Prototypen. Bereits im Vorfeld wurden Projektideen eingereicht, die beim HackathOERn kollaborativ weiterentwickelt wurden.