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:
Kamil Trzciński 2022-04-29 15:23:46 +02:00
parent 779a199009
commit ee1bb21ec9
3 changed files with 35 additions and 16 deletions

View file

@ -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"