Commit de210699 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Set asset image name properly for all possible CE/EE project names

Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent 7fa98743
...@@ -7,14 +7,13 @@ then ...@@ -7,14 +7,13 @@ then
fi fi
# Generate the image name based on the project this is being run in # Generate the image name based on the project this is being run in
ASSETS_IMAGE_NAME=$(echo ${CI_PROJECT_NAME} | if [[ "${CI_PROJECT_NAME}" == "gitlab-ce" ]] || [[ "${CI_PROJECT_NAME}" == "gitlabhq" ]]
awk '{ then
split($1, p, "-"); ASSETS_IMAGE_NAME="gitlab-assets-ce"
interim = sprintf("%s-assets-%s", p[1], p[2]); elif [[ "${CI_PROJECT_NAME}" == "gitlab-ee" ]]
sub(/-$/, "", interim); then
print interim ASSETS_IMAGE_NAME="gitlab-assets-ee"
}' fi
)
ASSETS_IMAGE_PATH=${CI_REGISTRY}/${CI_PROJECT_PATH}/${ASSETS_IMAGE_NAME} ASSETS_IMAGE_PATH=${CI_REGISTRY}/${CI_PROJECT_PATH}/${ASSETS_IMAGE_NAME}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment