Experiment: automatically push built images

This commit is contained in:
Andrejs Cunskis 2022-05-11 12:56:08 +00:00 committed by Rémy Coutable
parent 5a79c03924
commit 6bfe260f3b
15 changed files with 227 additions and 363 deletions

19
scripts/lib/custom-docker-push Executable file
View file

@ -0,0 +1,19 @@
#!/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