Skip to content

Commit

Permalink
Fix pushing with --registry-url #164
Browse files Browse the repository at this point in the history
  • Loading branch information
HackingM authored and edannenberg committed Aug 23, 2019
1 parent b5cc5eb commit cc8db05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,11 @@ function push_image() {
repository_url="$2"
push_id="${image_id}"
if [[ -n "${repository_url}" ]]; then
docker_image_id="$("${DOCKER}" images "${image_id}:${image_tag}" --format '{{.ID}}')"
docker_image_id="$("${DOCKER}" images "${image_id}:${IMAGE_TAG}" --format '{{.ID}}')"
# shellcheck disable=SC2181
[[ $? -ne 0 ]] && die "Couldn't determine image id for ${image_id}:${image_tag}: ${docker_image_id}"
[[ $? -ne 0 ]] && die "Couldn't determine image id for ${image_id}:${IMAGE_TAG}: ${docker_image_id}"
push_id="${repository_url}/${image_id}"
_status_msg="${DOCKER}" tag "${docker_image_id}" "${push_id}"
_status_msg="${DOCKER} tag ${docker_image_id} ${push_id}"
pwrap "${DOCKER}" tag "${docker_image_id}" "${push_id}" || die
fi
add_status_value "${push_id}"
Expand Down

0 comments on commit cc8db05

Please sign in to comment.