mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Experiment: automatically push built images
This commit is contained in:
parent
5a79c03924
commit
6bfe260f3b
15 changed files with 227 additions and 363 deletions
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
IFS=$'\n\t'
|
||||
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
source "$SCRIPT_DIR/lib/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue