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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Baum <ibaum@gitlab.com>2018-11-14 20:36:02 +0300
committerIan Baum <ibaum@gitlab.com>2018-11-15 18:45:04 +0300
commit553eaf01f7f299842d0985325e11ff8f58ef9c03 (patch)
treeba1fc235492ad96915d0d1792866f54b04b8b24a /scripts/build_assets_image
parent51c09c381b98d55a70c54c0ca709161dd75e808d (diff)
Add BUILD_ASSETS_IMAGE CI variable
* Defaults to FALSE * Can be used to disable building/pushing the assets image in the gitlab:compile:assets job
Diffstat (limited to 'scripts/build_assets_image')
-rwxr-xr-xscripts/build_assets_image6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build_assets_image b/scripts/build_assets_image
index 1d77524d503..4e5ef977161 100755
--- a/scripts/build_assets_image
+++ b/scripts/build_assets_image
@@ -1,5 +1,11 @@
#!/bin/bash
+# Exit early if we don't want to build the image
+if [[ "${BUILD_ASSETS_IMAGE}" != "true" ]]
+then
+ exit 0
+fi
+
# Generate the image name based on the project this is being run in
ASSETS_IMAGE_NAME=$(echo ${CI_PROJECT_NAME} |
awk '{