diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_assets_image | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/build_assets_image b/scripts/build_assets_image index b659bd751b2..0388cfa0c29 100755 --- a/scripts/build_assets_image +++ b/scripts/build_assets_image @@ -7,14 +7,13 @@ then fi # Generate the image name based on the project this is being run in -ASSETS_IMAGE_NAME=$(echo ${CI_PROJECT_NAME} | - awk '{ - split($1, p, "-"); - interim = sprintf("%s-assets-%s", p[1], p[2]); - sub(/-$/, "", interim); - print interim - }' -) +if [[ "${CI_PROJECT_NAME}" == "gitlab-ce" ]] || [[ "${CI_PROJECT_NAME}" == "gitlabhq" ]] +then + ASSETS_IMAGE_NAME="gitlab-assets-ce" +elif [[ "${CI_PROJECT_NAME}" == "gitlab-ee" ]] +then + ASSETS_IMAGE_NAME="gitlab-assets-ee" +fi ASSETS_IMAGE_PATH=${CI_REGISTRY}/${CI_PROJECT_PATH}/${ASSETS_IMAGE_NAME} |