mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Allow to prefix deployed images into nested
This allows to escape the tag length limit of 128 and better organise images from different architectures
This commit is contained in:
parent
779a199009
commit
ee1bb21ec9
3 changed files with 35 additions and 16 deletions
|
|
@ -6,9 +6,10 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||
source "$SCRIPT_DIR/lib/custom-docker.sh"
|
||||
|
||||
function custom_push() {
|
||||
build_image_name=$(get_image_name)
|
||||
echo "Pushing image $build_image_name"
|
||||
full_image_name="$CI_REGISTRY_IMAGE:$build_image_name"
|
||||
build_image_path=$(get_image_path)
|
||||
build_image_tag=$(get_image_tag)
|
||||
echo "Pushing image $build_image_path:$build_image_tag"
|
||||
full_image_name="$build_image_path:$build_image_tag"
|
||||
|
||||
docker push "$full_image_name"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue