mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
19 lines
497 B
Bash
Executable file
19 lines
497 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
IFS=$'\n\t'
|
|
|
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
source "$SCRIPT_DIR/custom-docker.sh"
|
|
|
|
function custom_push() {
|
|
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"
|
|
|
|
printf "\n\nSUCCESS - Successfully pushed:\n\t%s" "$build_image_name"
|
|
}
|
|
|
|
custom_push
|