#!/bin/bash

if [ "$(uname)" != "Darwin" ]; then
  s=sudo
fi

for d in */ ; do
    pushd $d
    $s docker tag bazooka/runner-golang:${d%?} $BZK_REGISTRY_HOST/bazooka/runner-golang:${d%?}
    $s docker push $BZK_REGISTRY_HOST/bazooka/runner-golang:${d%?}
    popd
done

$s docker push bazooka/runner-golang:latest $BZK_REGISTRY_HOST/bazooka/runner-golang:latest

#!/bin/bash

if [ "$(uname)" != "Darwin" ]; then
  s=sudo
fi

for d in */ ; do
    pushd $d
    $s docker tag bazooka/runner-golang:${d%?} $BZK_REGISTRY_HOST/bazooka/runner-golang:${d%?}
    $s docker push $BZK_REGISTRY_HOST/bazooka/runner-golang:${d%?}
    popd
done

$s docker tag bazooka/runner-golang:1.3.1 $BZK_REGISTRY_HOST/bazooka/runner-golang:latest
$s docker push $BZK_REGISTRY_HOST/bazooka/runner-golang:latest

Tag image before pushing it
Tag image before pushing it
