diff options
author | Ian Baum <ibaum@gitlab.com> | 2018-11-01 14:26:51 -0500 |
---|---|---|
committer | Ian Baum <ibaum@gitlab.com> | 2018-11-01 14:26:51 -0500 |
commit | ce4aae2379cc051aa43f73a6dff4044740f41f2b (patch) | |
tree | 2a1ed5cafebfb9f9989647060a385b928d05c240 /scripts/build_assets_image | |
parent | 85b855aa6ba070fc1d79d006075270cfcba33316 (diff) | |
download | gitlab-ce-ce4aae2379cc051aa43f73a6dff4044740f41f2b.tar.gz |
Use CI_COMMIT_REF_SLUG when building assets imagefix-for-assets-image
* Using CI_COMMIT_REF_NAME fails when the branch or tag contains special
characters
Diffstat (limited to 'scripts/build_assets_image')
-rwxr-xr-x | scripts/build_assets_image | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build_assets_image b/scripts/build_assets_image index 218606b9a40..1d77524d503 100755 --- a/scripts/build_assets_image +++ b/scripts/build_assets_image @@ -15,7 +15,7 @@ ASSETS_IMAGE_PATH=${CI_REGISTRY}/${CI_PROJECT_PATH}/${ASSETS_IMAGE_NAME} mkdir -p assets_container.build/public cp -r public/assets assets_container.build/public/ cp Dockerfile.assets assets_container.build/ -docker build -t ${ASSETS_IMAGE_PATH}:${CI_COMMIT_REF_NAME} -f assets_container.build/Dockerfile.assets assets_container.build/ +docker build -t ${ASSETS_IMAGE_PATH}:${CI_COMMIT_REF_SLUG} -f assets_container.build/Dockerfile.assets assets_container.build/ docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY} docker push ${ASSETS_IMAGE_PATH} |