Compare commits
12 Commits
251080bb26
...
386e3a92aa
| Author | SHA1 | Date |
|---|---|---|
|
|
386e3a92aa | |
|
|
1107534cff | |
|
|
f9bc57119b | |
|
|
23b00762ed | |
|
|
299d53c4d7 | |
|
|
48dcd7ddc5 | |
|
|
cecd85ec1f | |
|
|
2e645d65f5 | |
|
|
43046f2dc6 | |
|
|
cd6a90ff10 | |
|
|
bdb58a63c0 | |
|
|
dea54c2c76 |
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
@ -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.
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# ist die Shell eine bash?
|
||||||
|
# ich vermute ja, aber vielleicht auch zsh oder gar ksh?
|
||||||
|
echo $S HELL
|
||||||
Loading…
Reference in New Issue