Last active
February 27, 2020 08:04
-
-
Save wshihadeh/63c7e8db976352241ed6a8fe39df3d14 to your computer and use it in GitHub Desktop.
Build and Push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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