Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Last active February 27, 2020 08:04
Show Gist options
  • Save wshihadeh/63c7e8db976352241ed6a8fe39df3d14 to your computer and use it in GitHub Desktop.
Save wshihadeh/63c7e8db976352241ed6a8fe39df3d14 to your computer and use it in GitHub Desktop.
Build and Push
#!/bin/bash -le
registry=$1
namespace=$2
for path in rails-base-image-ruby/*; do
image=$(echo $path| sed -re 's#/([^/]*)$#:\1#')
pushd $path
docker build -t $registry/$namespace/$image .
docker push $registry/$namespace/$image
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment