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>2019-10-24 10:27:46 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-12-19 11:34:19 +0300
commita4a5fed59443a43108f1e0001020ce7cbb03d3b2 (patch)
tree40acc3c7a066c6096aa9da08029a6a25fb357308 /dockerfiles
parent1711f3ef3d25ef5a921387217dc4156d0001d71a (diff)
Make sure we also capture full URLs when converting the versioned URLs
In cross-product docs, we're referencing full URLs instead of relative ones. For example, an Omnibus doc can have a doc reference to a Runner doc URL. In that case, we use the full URL. This change adds another find command that checks and replaces the version for full URLs as well.
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/Dockerfile.builder.onbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/dockerfiles/Dockerfile.builder.onbuild b/dockerfiles/Dockerfile.builder.onbuild
index 99f090fb..fcf38148 100644
--- a/dockerfiles/Dockerfile.builder.onbuild
+++ b/dockerfiles/Dockerfile.builder.onbuild
@@ -29,6 +29,7 @@ ONBUILD RUN [ -f /scripts/normalize-links.sh ] && /scripts/normalize-links.sh /s
ONBUILD RUN [ -f /scripts/compress_images.sh ] && /scripts/compress_images.sh /site ${VER} || "/scripts/compress_images.sh not found"
# Minify assets
+# ATTENTION: This should be the last script to run
ONBUILD RUN [ -f /scripts/minify-assets.sh ] && /scripts/minify-assets.sh /site ${VER} || "/scripts/minify-assets.sh not found"
# Make an index.html and 404.html which will redirect / to /${VER}/