Skip to content
Snippets Groups Projects
Verified Commit ae49c3b6 authored by Šimon Berka's avatar Šimon Berka
Browse files

redirect old docs to new

parent e9690cc7
No related branches found
No related tags found
No related merge requests found
Showing
with 232 additions and 42 deletions
...@@ -4,49 +4,13 @@ variables: ...@@ -4,49 +4,13 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
build-test: pages:
before_script:
- apk update
- apk add git
- apk add python3
- apk add py3-pip
- apk add py3-yaml
- apk add openssh-client
script: script:
- hugo --config config.toml -D --destination=./public - echo ""
deploy_cpanel:
before_script:
- apk update
- apk add git
- apk add python3
- apk add py3-pip
- apk add py3-yaml
- apk add openssh-client
- apk add curl
script:
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ics.muni.cz/cloud/hiera.git
- sed -i '11,$d' content/cloud/flavors/index.md
- echo "{{< csv-table header=\"true\">}}" >> content/cloud/flavors/index.md
- python3 ci/flavor_info_miner.py --hiera-file ./hiera/group/ostack/flavors.yaml
- cat flavors.csv >> content/cloud/flavors/index.md
- echo "{{</csv-table>}}" >> content/cloud/flavors/index.md
- cat content/cloud/flavors/index.md
- sed -i -e "s/BUILDIDTAG/$CI_COMMIT_SHORT_SHA/g" ./layouts/partials/site-footer.html
- hugo --config config.toml -D --destination=./public
- eval $(ssh-agent -s) artifacts:
- echo "$SSH_PRIVATE_KEY_cpanel" | tr -d '\r' | ssh-add - paths:
- mkdir -p ~/.ssh - public
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS_cpanel" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy'
- scp -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy
- ssh docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete'
- sleep 5
- latest_commit=$(git log -1 --pretty=format:%h )
- "curl -H 'Cache-Control: no-cache' https://docs.cloud.muni.cz | grep $latest_commit"
only: only:
- master - feature/old-docs-redir
\ No newline at end of file
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/advanced-features/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/advanced-features/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/advanced-features/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/best-practices/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/best-practices/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/best-practices/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/cli/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/cli/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/cli/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/contribute/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/contribute/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/contribute/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/faq/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/faq/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/faq/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/flavors/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/flavors/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/flavors/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/network/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/network/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/network/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/news/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/news/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/news/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/putty/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/putty/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/putty/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/quick-start/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/quick-start/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/quick-start/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/register/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/register/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/register/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/terms-of-service/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/terms-of-service/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/terms-of-service/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/tools/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/tools/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/tools/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/windows/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/cloud/windows/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/cloud/windows/'>moved</a>.
</body>
</html>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/">
<script type="text/javascript">
window.location.href = "https://docs.cloud.muni.cz/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
Documentation has been <a href='https://docs.cloud.muni.cz/'>moved</a>.
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment