hack: fix docker most recent tag check

I think this stopped working when we starting using a specific registry in e0b94f47.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler 2021-01-22 08:33:24 -05:00
parent 93ebd0f949
commit 93d25a349f
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413

View File

@ -136,7 +136,7 @@ if ! tilt_mode; then
tag=$(uuidgen) # always a new tag to force K8s to reload the image on redeploy tag=$(uuidgen) # always a new tag to force K8s to reload the image on redeploy
if [[ "$skip_build" == "yes" ]]; then if [[ "$skip_build" == "yes" ]]; then
most_recent_tag=$(docker images "$repo" --format "{{.Tag}}" | head -1) most_recent_tag=$(docker images "$registry/$repo" --format "{{.Tag}}" | head -1)
if [[ -n "$most_recent_tag" ]]; then if [[ -n "$most_recent_tag" ]]; then
tag="$most_recent_tag" tag="$most_recent_tag"
do_build=no do_build=no