Commit 3fd5c5f7 authored by Axel Dürkop's avatar Axel Dürkop
Browse files

Untrack _book

parent 5243ec0f
Pipeline #6569 passed with stages
in 20 seconds
variables:
COLON: ':'
stages:
- build
- review
- deploy
build:
stage: build
only:
- branches
tags:
- development
script:
- pwd
- gitbook install
- gitbook build
# Quick and dirty hack: The creation of the PDF document does not always work. This seems to be a bug.
- mkdir -p book_pdf; until gitbook pdf ./ ./book_pdf/book.pdf; do printf "$s\n" "failure, next try …"; done
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
paths:
# Was hier nicht gelistet ist, landet auch nicht in der `review`-Phase
- _book
- book_pdf
start_review:
stage: review
script:
- sshpass -p "$SSH_PASSWD" ssh -p "$SSH_PORT" $SSH_USER@$HOST_NAME "mkdir -p /usr/share/nginx/html/review/$CI_COMMIT_REF_NAME"
- sshpass -p "$SSH_PASSWD" scp -P "$SSH_PORT" -r _book/* $SSH_USER@$HOST_NAME:/usr/share/nginx/html/review/$CI_COMMIT_REF_NAME
- sshpass -p "$SSH_PASSWD" scp -P "$SSH_PORT" -r book_pdf $SSH_USER@$HOST_NAME:/usr/share/nginx/html/review/${CI_COMMIT_REF_NAME}
environment:
name: review/$CI_COMMIT_REF_NAME
url: http://$HOST_NAME$COLON$HTTP_PORT/review/$CI_COMMIT_REF_NAME/
#url: https://$PROXY_HOST_NAME/reviews/$CI_PROJECT_PATH/$CI_COMMIT_REF_NAME/
on_stop: stop_review
only:
- branches
tags:
- development
except:
- master
stop_review:
stage: review
variables:
GIT_STRATEGY: none
script:
- sshpass -p "$SSH_PASSWD" ssh -p "$SSH_PORT" $SSH_USER@$HOST_NAME "rm -rf /usr/share/nginx/html/review/$CI_COMMIT_REF_NAME"
when: manual
environment:
name: review/$CI_COMMIT_REF_NAME
action: stop
only:
- branches
tags:
- development
except:
- master
deploy:
stage: deploy
only:
- master
tags:
- production
script:
- sshpass -p "$SSH_PASSWD" ssh -p "$SSH_PORT" $SSH_USER@$HOST_NAME "mkdir -p /usr/share/nginx/html/production"
- sshpass -p "$SSH_PASSWD" scp -P "$SSH_PORT" -r _book/* $SSH_USER@$HOST_NAME:/usr/share/nginx/html/production
environment:
name: production
url: http://$HOST_NAME$COLON$HTTP_PORT/production/
#url: https://fizban05.rz.tu-harburg.de/$CI_PROJECT_PATH/
\ No newline at end of file
{
"LANGS_CHOOSE": "Sprache auswählen",
"GLOSSARY": "Glossar",
"GLOSSARY_INDEX": "Index",
"GLOSSARY_OPEN": "Glossar",
"GITBOOK_LINK": "Erzeugt mit GitBook",
"SUMMARY": "Inhaltsverzeichnis",
"SUMMARY_INTRODUCTION": "Einleitung",
"SUMMARY_TOGGLE": "Inhaltsverzeichnis",
"SEARCH_TOGGLE": "Suche",
"SEARCH_PLACEHOLDER": "Suchbegriff eingeben",
"SEARCH_RESULTS_TITLE": "<span class='search-results-count'></span> Ergebnisse, die auf \"<span class='search-query'></span>\" passen.",
"SEARCH_NO_RESULTS_TITLE": "Keine Ergebnisse, die auf \"<span class='search-query'></span>\" passen.",
"FONTSETTINGS_TOGGLE": "Schrifteinstellungen",
"SHARE_TOGGLE": "Teilen",
"SHARE_ON": "Auf {{platform}} teilen",
"FONTSETTINGS_WHITE": "Hell",
"FONTSETTINGS_SEPIA": "Sepia",
"FONTSETTINGS_NIGHT": "Nacht",
"FONTSETTINGS_SANS": "Sans",
"FONTSETTINGS_SERIF": "Serif"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment