You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
575 B

  1. #!/bin/bash
  2. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  3. . $SCRIPT_DIR/_settings.sh || {
  4. echo "no settings" && exit 1
  5. }
  6. cd "$SCRIPT_DIR/.."
  7. set -e
  8. for PHP_VERSION in "${PHP_VERSIONS[@]}"; do
  9. echo
  10. echo "Rebuilding: PHP ${PHP_VERSION}"
  11. echo
  12. PHP_SERVICE="php${PHP_VERSION}"
  13. WORKSPACE_SERVICE="workspace${PHP_VERSION}"
  14. bash -ic "dc build ${PHP_SERVICE}"
  15. bash -ic "dc up -d --force-recreate ${PHP_SERVICE}"
  16. bash -ic "dc build ${WORKSPACE_SERVICE}"
  17. bash -ic "dc up -d --force-recreate ${WORKSPACE_SERVICE}"
  18. echo
  19. done