Compare commits

..

No commits in common. "386e3a92aa60d8b687c3a13584fb63d3c6fe57b0" and "251080bb26665e9462ab22d891d39d6626852684" have entirely different histories.

4 changed files with 33 additions and 39 deletions

View File

@ -1,21 +1,23 @@
when:
- branch: main
event: push
path:
include: ['sb/**']
on_empty: false
steps:
- name: log_start_time
- name: set_path_for_branch
image: alpine
commands:
- date +"%Y-%m-%d_%T_%N"
- echo 'Schritt.01. set_path_for_branch'
- 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
image: hugomods/hugo
commands:
- hugo version
- hugo -s sb --logLevel info
- git -C sb/themes/ submodule update --remote --recursive
- hugo --cleanDestinationDir -s sb --logLevel info
- name: copy_to_server
image: alpine
@ -32,12 +34,26 @@ steps:
from_secret: target_path
commands:
- BLOG_FOLDER=$TARGET_PATH/sb/${CI_COMMIT_BRANCH}
- echo $BLOG_FOLDER
- 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 $HOME/time_begin_copy_$(date +"%Y-%m-%d_%T_%N")'
- 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 -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "mkdir -p $BLOG_FOLDER"
- 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

@ -1,5 +0,0 @@
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,11 +4,10 @@ creativeWorkStatus: Published
type: LearningResource
name: Ist die Bibel eigentlich Open?
description: >-
Laura und Phillip vom FOERBICO Team gehen der Frage nach, ob das meist
verkaufte Buch der Welt, die Bibel, eigentlich für Open Educational Resourses
anwendbar ist.
license: https://creativecommons.org/licenses/by/4.0/deed.de
id: https://oer.community/ist-die-bibel-eigentlich-open/
Laura und Phillip vom FOERBICO Team gehen der Frage nach,
ob das meist verkaufte Buch der Welt, die Bibel,
eigentlich für Open Educational Resourses anwendbar ist.
license: https://creativecommons.org/licenses/by/4.0/deed.de
creator:
- givenName: Laura
familyName: Mößle
@ -33,21 +32,10 @@ keywords:
- Open
inLanguage:
- 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:
- https://w3id.org/kim/hcrt/web_page
educationalLevel:
- https://w3id.org/kim/educationalLevel/level_A
datePublished: '2024-11-12'
#staticSiteGenerator:
title: Ist die Bibel eigentlich Open?
cover:

View File

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