Commit c74884b8 authored by Andreas Böttger's avatar Andreas Böttger 😬

Update .gitlab-ci.yml

parent d8f16b44
Pipeline #13662 passed with stage
......@@ -57,7 +57,7 @@ deploy:
- pwd
- sudo docker pull docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest
# `_layouts/home.html` kann datumsabhängig mit einer Datei aus `backlogs` überschrieben werden
- awk -F'/|_' -v date=$(date +%Y%m%d) '{if ($2 <= date) {print("cp backlog/"$2"_home.html _layouts/home.html"); system("cp backlog/"$2"_home.html _layouts/home.html")}}' <<< $(find backlog -regextype egrep -regex "backlog/[0-9]{8,8}_.*" | sort | xargs printf "%s\n")
- find backlog -regextype egrep -regex "backlog/[0-9]{8,8}_.*" | sort | awk -F'/|_' -v date=$(date +%Y%m%d) '{if ($2 <= date) {print("cp backlog/"$2"_home.html _layouts/home.html"); system("cp backlog/"$2"_home.html _layouts/home.html")}}'
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest install
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest build
- sshpass -p "$SSH_PASSWD" ssh -p "$SSH_PORT" $SSH_USER@$HOST_NAME "mkdir -p /usr/share/nginx/html/production"
......
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