Compare commits

..

12 Commits

Author SHA1 Message Date
Ludger Sicking 386e3a92aa Merge pull request 'Deployment: Logik bei Pull Requests erproben 002' (#155) from deployment-pull-request-bitte-NICHT-ausfuehren into main
Reviewed-on: https://git.rpi-virtuell.de/Comenius-Institut/FOERBICO/pulls/155
2024-12-03 09:12:06 +00:00
Ludger Sicking 1107534cff Deployment: Logik bei Pull Requests erproben 002 2024-12-03 10:10:24 +01:00
joerglohrer f9bc57119b update metadata
Fach, URL, Vorschaubild, Veröffentlichungsdatum ergänzt
2024-12-03 08:47:02 +00:00
Ludger Sicking 23b00762ed Merge pull request 'Deployment: Logik bei Pull Requests erproben 001' (#154) from deployment-pull-request-bitte-ausfuehren into main
Reviewed-on: https://git.rpi-virtuell.de/Comenius-Institut/FOERBICO/pulls/154
2024-12-03 08:43:16 +00:00
Ludger Sicking 299d53c4d7 Deployment: Logik bei Pull Requests erproben 001 2024-12-03 09:40:56 +01:00
sicking 48dcd7ddc5 Add sb/scripts/kein-helferlein.sh 2024-12-03 08:24:04 +00:00
Ludger Sicking cecd85ec1f Merge pull request 'Webseiten-Deployment durch Woodpecker - erste Schritte' (#153) from feature/deploy-with-pull-request-to-main into main
Reviewed-on: https://git.rpi-virtuell.de/Comenius-Institut/FOERBICO/pulls/153
2024-12-03 08:22:04 +00:00
Ludger Sicking 2e645d65f5 Deployment: Syntax für "steps" erproben 004 2024-12-03 09:13:24 +01:00
Ludger Sicking 43046f2dc6 Deployment: Syntax für "steps" erproben 003 2024-12-03 09:02:29 +01:00
Ludger Sicking cd6a90ff10 Deployment: Syntax für "steps" erproben 002 2024-12-03 09:00:48 +01:00
Ludger Sicking bdb58a63c0 Deployment: Syntax für "steps" erproben 001 2024-12-03 08:56:20 +01:00
Ludger Sicking dea54c2c76 Deployment: Syntax für "steps" erproben 2024-12-03 08:53:55 +01:00
4 changed files with 39 additions and 33 deletions

View File

@ -1,23 +1,21 @@
steps: when:
- branch: main
event: push
path:
include: ['sb/**']
on_empty: false
- name: set_path_for_branch steps:
- name: log_start_time
image: alpine image: alpine
commands: commands:
- echo 'Schritt.01. set_path_for_branch' - date +"%Y-%m-%d_%T_%N"
- echo "PATH_FOR_BRANCH=$CI_COMMIT_BRANCH" >> environment_variables
- cat environment_variables
- sed "s+'//oer.community/'+'//oer.community/sb/${CI_COMMIT_BRANCH}/'+" sb/hugo.yaml > hugo-changed.yaml
- cat sb/hugo.yaml
- cat hugo-changed.yaml
- mv hugo-changed.yaml sb/hugo.yaml
- find . -name "*hugo*ml"
- name: build_by_hugo - name: build_by_hugo
image: hugomods/hugo image: hugomods/hugo
commands: commands:
- hugo version - hugo version
- git -C sb/themes/ submodule update --remote --recursive - hugo -s sb --logLevel info
- hugo --cleanDestinationDir -s sb --logLevel info
- name: copy_to_server - name: copy_to_server
image: alpine image: alpine
@ -34,26 +32,12 @@ steps:
from_secret: target_path from_secret: target_path
commands: commands:
- BLOG_FOLDER=$TARGET_PATH/sb/${CI_COMMIT_BRANCH}
- echo $BLOG_FOLDER
- apk add --no-cache openssh - apk add --no-cache openssh
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey
- chmod 600 ~/.ssh/deployKey - chmod 600 ~/.ssh/deployKey
- ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts - ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/known_hosts - chmod 600 ~/.ssh/known_hosts
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'touch $HOME/time_begin_copy_$(date +"%Y-%m-%d_%T_%N")'
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "mkdir -p $BLOG_FOLDER" - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$TARGET_PATH/
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'touch $HOME/time_end_copy_$(date +"%Y-%m-%d_%T_%N")'
- SSH_COMMAND="touch $BLOG_FOLDER/touchdown-txt_dot-log"
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'ls -la'
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "ls -la $BLOG_FOLDER"
- SSH_COMMAND="mkdir -p "$BLOG_FOLDER/_unter_ordner; touch $BLOG_FOLDER/_unter_ordner/_eine_datei"
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND
- SSH_COMMAND="rmdir -p "$BLOG_FOLDER/_unter_ordner"
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND

View File

@ -0,0 +1,5 @@
In dieser Datei wird sich -
abhängig vom Deployment Schritt -
mal mehr, mal weniger ändern.
Vielleicht läuft der Build Step nun.

View File

@ -4,10 +4,11 @@ creativeWorkStatus: Published
type: LearningResource type: LearningResource
name: Ist die Bibel eigentlich Open? name: Ist die Bibel eigentlich Open?
description: >- description: >-
Laura und Phillip vom FOERBICO Team gehen der Frage nach, Laura und Phillip vom FOERBICO Team gehen der Frage nach, ob das meist
ob das meist verkaufte Buch der Welt, die Bibel, verkaufte Buch der Welt, die Bibel, eigentlich für Open Educational Resourses
eigentlich für Open Educational Resourses anwendbar ist. anwendbar ist.
license: https://creativecommons.org/licenses/by/4.0/deed.de license: https://creativecommons.org/licenses/by/4.0/deed.de
id: https://oer.community/ist-die-bibel-eigentlich-open/
creator: creator:
- givenName: Laura - givenName: Laura
familyName: Mößle familyName: Mößle
@ -32,10 +33,21 @@ keywords:
- Open - Open
inLanguage: inLanguage:
- de - de
about:
- https://w3id.org/kim/hochschulfaechersystematik/n02
- https://w3id.org/kim/hochschulfaechersystematik/n03
- https://w3id.org/kim/hochschulfaechersystematik/n053
- https://w3id.org/kim/hochschulfaechersystematik/n086
- https://w3id.org/kim/hochschulfaechersystematik/n136
- https://w3id.org/kim/hochschulfaechersystematik/n544
- https://w3id.org/kim/hochschulfaechersystematik/n545
image: >-
https://oer.community/ist-die-bibel-eigentlich-open/an-open-bible_Lynn_Greyling_Small.png
learningResourceType: learningResourceType:
- https://w3id.org/kim/hcrt/web_page - https://w3id.org/kim/hcrt/web_page
educationalLevel: educationalLevel:
- https://w3id.org/kim/educationalLevel/level_A - https://w3id.org/kim/educationalLevel/level_A
datePublished: '2024-11-12'
#staticSiteGenerator: #staticSiteGenerator:
title: Ist die Bibel eigentlich Open? title: Ist die Bibel eigentlich Open?
cover: cover:

View File

@ -0,0 +1,5 @@
#!/bin/sh
# ist die Shell eine bash?
# ich vermute ja, aber vielleicht auch zsh oder gar ksh?
echo $S HELL