build_images.sh 243 B

1234567891011121314
  1. #!/bin/sh
  2. podman container prune -f
  3. podman image prune -f
  4. cd ~/blueprints || exit 1
  5. if git status >/dev/null 2>&1
  6. then
  7. git pull
  8. fi
  9. find . -maxdepth 1 -mindepth 1 -type d -exec sh -c 'podman build -t "toy_$(basename "$1")" $1' shell {} \;