Skip to content
Snippets Groups Projects
Commit 64ad1e47 authored by Roman Sliva's avatar Roman Sliva
Browse files

Merge branch 'master' of code.it4i.cz:sccs/docs.it4i.cz

parents 09e33d9b 4056d599
No related branches found
No related tags found
No related merge requests found
Pipeline #33892 failed
...@@ -55,8 +55,8 @@ ext_links: ...@@ -55,8 +55,8 @@ ext_links:
before_script: before_script:
- echo "192.168.101.10 docs.it4i.cz" >> /etc/hosts - echo "192.168.101.10 docs.it4i.cz" >> /etc/hosts
- wget -V - wget -V
- echo https://docs.it4i.cz/devel/$CI_BUILD_REF_NAME/ - echo https://docs.it4i.cz/devel/$CI_COMMIT_REF_NAME/
- wget --spider -e robots=off -o wget.log -r -p https://docs.it4i.cz/devel/$CI_BUILD_REF_NAME/ || true - wget --spider -e robots=off -o wget.log -r -p https://docs.it4i.cz/devel/$CI_COMMIT_REF_NAME/ || true
script: script:
- cat wget.log | awk '/^Found [0-9]+ broken link[s]?.$/,/FINISHED/ { rc=-1; print $0 }; END { exit rc }' - cat wget.log | awk '/^Found [0-9]+ broken link[s]?.$/,/FINISHED/ { rc=-1; print $0 }; END { exit rc }'
...@@ -75,7 +75,7 @@ mkdocs: ...@@ -75,7 +75,7 @@ mkdocs:
# get modules list from clusters # get modules list from clusters
- bash scripts/get_modules.sh - bash scripts/get_modules.sh
# generate site_url # generate site_url
- (if [ "${CI_BUILD_REF_NAME}" != 'master' ]; then sed -i "s/\(site_url.*$\)/\1devel\/$CI_BUILD_REF_NAME\//" mkdocs.yml;fi); - (if [ "${CI_COMMIT_REF_NAME}" != 'master' ]; then sed -i "s/\(site_url.*$\)/\1devel\/$CI_COMMIT_REF_NAME\//" mkdocs.yml;fi);
# generate ULT for code link # generate ULT for code link
# - sed -i "s/master/$CI_BUILD_REF_NAME/g" material/partials/toc.html # - sed -i "s/master/$CI_BUILD_REF_NAME/g" material/partials/toc.html
# regenerate modules matrix # regenerate modules matrix
...@@ -113,7 +113,7 @@ deploy to stage: ...@@ -113,7 +113,7 @@ deploy to stage:
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script: script:
- chown nginx:nginx site -R - chown nginx:nginx site -R
- rsync -a --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/ - rsync -a --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_COMMIT_REF_NAME/
only: only:
- branches@sccs/docs.it4i.cz - branches@sccs/docs.it4i.cz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment