diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7daf34c0a7c24d621ce331a90c8093198ed8ade8..4b8256ac4fa49ca67be6e4cc27aed1379ee8028e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,49 +4,13 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -build-test: - before_script: - - apk update - - apk add git - - apk add python3 - - apk add py3-pip - - apk add py3-yaml - - apk add openssh-client +pages: 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) - - echo "$SSH_PRIVATE_KEY_cpanel" | tr -d '\r' | ssh-add - - - mkdir -p ~/.ssh - - 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" + artifacts: + paths: + - public only: - - master - + - feature/old-docs-redir \ No newline at end of file diff --git a/public/cloud/advanced-features/index.html b/public/cloud/advanced-features/index.html new file mode 100644 index 0000000000000000000000000000000000000000..986b339dff8ff161ea95f3cb55ddfbfe6865b84c --- /dev/null +++ b/public/cloud/advanced-features/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/best-practices/index.html b/public/cloud/best-practices/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9ad932953584a5160969d3fc7d4633b931aeddb3 --- /dev/null +++ b/public/cloud/best-practices/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/cli/index.html b/public/cloud/cli/index.html new file mode 100644 index 0000000000000000000000000000000000000000..90ff3204b201babdf54b1544ab61f8cc68e4c9e0 --- /dev/null +++ b/public/cloud/cli/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/contribute/index.html b/public/cloud/contribute/index.html new file mode 100644 index 0000000000000000000000000000000000000000..bc8b79f39f591beceba4f0c42b80acf16262123f --- /dev/null +++ b/public/cloud/contribute/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/faq/index.html b/public/cloud/faq/index.html new file mode 100644 index 0000000000000000000000000000000000000000..f76a05805669a5a97ddeff3b748aad08a1c2605f --- /dev/null +++ b/public/cloud/faq/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/flavors/index.html b/public/cloud/flavors/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1022504068c9a6446d128db127d63a24a8e8e0a5 --- /dev/null +++ b/public/cloud/flavors/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/network/index.html b/public/cloud/network/index.html new file mode 100644 index 0000000000000000000000000000000000000000..11998820096433ac9d385e831762dc63cbe0c31d --- /dev/null +++ b/public/cloud/network/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/news/index.html b/public/cloud/news/index.html new file mode 100644 index 0000000000000000000000000000000000000000..980636cbf0c9f88022b01a58d6e088b6f7af94bd --- /dev/null +++ b/public/cloud/news/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/putty/index.html b/public/cloud/putty/index.html new file mode 100644 index 0000000000000000000000000000000000000000..5d120a93effbddb71df78206d65417e71ad92d17 --- /dev/null +++ b/public/cloud/putty/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/quick-start/index.html b/public/cloud/quick-start/index.html new file mode 100644 index 0000000000000000000000000000000000000000..74970e29d9046248c2dcf156503ba113ce86f8e3 --- /dev/null +++ b/public/cloud/quick-start/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/register/index.html b/public/cloud/register/index.html new file mode 100644 index 0000000000000000000000000000000000000000..0206cd9b93c8dd5ec7ad8f0a5c3b8a8ed293a5f9 --- /dev/null +++ b/public/cloud/register/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/terms-of-service/index.html b/public/cloud/terms-of-service/index.html new file mode 100644 index 0000000000000000000000000000000000000000..0d6656154c75675aecfe8ff7a9af6ccb5fb89b1c --- /dev/null +++ b/public/cloud/terms-of-service/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/tools/index.html b/public/cloud/tools/index.html new file mode 100644 index 0000000000000000000000000000000000000000..409037996e9a9f639e9aef6c5e0cfae46c2ec266 --- /dev/null +++ b/public/cloud/tools/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/cloud/windows/index.html b/public/cloud/windows/index.html new file mode 100644 index 0000000000000000000000000000000000000000..bf14f6f8784ac7b0bbe32102040104438bf496c5 --- /dev/null +++ b/public/cloud/windows/index.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000000000000000000000000000000000000..349370b87a891674318ebe96e824eafaf134cc7e --- /dev/null +++ b/public/index.html @@ -0,0 +1,16 @@ +<!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> +