#!/usr/bin/env sh

set -eux

export COCKROACH_IMAGE=cockroachdb/cockroach

./build/build-docker-deploy.sh
run/local-cluster.sh stop
run/local-cluster.sh start
run/local-cluster.sh stop

docker tag cockroachdb/cockroach:latest cockroachdb/cockroach:${VERSION}
docker tag cockroachdb/cockroach-dev:latest cockroachdb/cockroach-dev:${VERSION}

for type in {,-dev}; do
  for version in {latest, ${VERSION}}; do
    # Pushing to the registry just fails sometimes, so for the time
    # being just make this a best-effort action.
    docker push cockroachdb/cockroach${type}:${version} || true
  done
done

#!/usr/bin/env sh

set -eux

export COCKROACH_IMAGE=cockroachdb/cockroach

./build/build-docker-deploy.sh
run/local-cluster.sh stop
run/local-cluster.sh start
run/local-cluster.sh stop

docker tag cockroachdb/cockroach:latest cockroachdb/cockroach:${VERSION}

for version in {latest, ${VERSION}}; do
  # Pushing to the registry just fails sometimes, so for the time
  # being just make this a best-effort action.
  docker push cockroachdb/cockroach:${version} || true
done

Disable pushing the cockroachdb/cockroach-dev image.
Disable pushing the cockroachdb/cockroach-dev image.

We're not building it anymore, so we can't push it. I suppose we could
manually build it here, but that would add ~16min to each build. Should
we really be pushing new images for every successful master build?
