Add check to validate gitlab-version is set for fetch-assets

This commit is contained in:
John McDonnell 2023-03-06 05:55:22 +00:00 committed by Balasankar 'Balu' C
parent ccd2c6857b
commit 426b071ea7
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ gitlab_version=$(echo "${1}" | awk '
}
')
if [ -z "$gitlab_version" ]
then
echo "error generating gitlab_version from ${1} "
exit 1
fi
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
assets_image_name="${ASSET_REGISTRY}/${assets_image}:${gitlab_version}"