Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-03-29 17:44:21 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-03-29 17:44:21 +0300
commit476134bff527cba99eab74298fb1d49a8ab69975 (patch)
tree077684464deea571149af1ee9b1c36e72c01cb83 /.gitlab-ci.yml
parent247b8378cabf8b7f4e23571b16d0c13dba7f47c5 (diff)
Add missing commands to include versions
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dcb6fe68..02577a9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -194,8 +194,17 @@ pages:
dependencies:
- compile_prod # Contains the public directory
script:
+ # Use the URL in the browser performance testing below
- echo $CI_ENVIRONMENT_URL > environment_url.txt
- # Symlink all README.html to index.html
+ # Move the already built versions to the public directory.
+ # We want to use the artifacts of the compile_prod job as
+ # the latest docs deployment, and the other versions are
+ # taken from /usr/share/nginx/html which are included in
+ # the image we pull from.
+ - mv public latest
+ - mv /usr/share/nginx/html public
+ - cp -a latest/* public/
+ # Symlink all README.html to index.html so that we can have clean URLs
- for i in `find public -name README.html`; do ln -sf README.html $(dirname $i)/index.html; done
artifacts:
paths: