diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a0c27f18..e68e5814 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -61,7 +61,7 @@ else cd "$TARGET_DIR" git fetch origin "$BRANCH" git reset --hard "origin/$BRANCH" - cd - + cd - fi cd "$TARGET_DIR" @@ -93,9 +93,9 @@ echo "Using Nexus npm proxy: $NPM_REGISTRY" NPM_REGISTRY_ARG="--build-arg NPM_REGISTRY=${NPM_REGISTRY}" echo "Building Docker images..." -docker compose --progress plain build - --build-arg NEXT_PUBLIC_API_URL="${API_URL}/api" - --build-arg VITE_API_URL="${API_URL}" +docker compose --progress plain build + --build-arg NEXT_PUBLIC_API_URL="${API_URL}/api" + --build-arg VITE_API_URL="${API_URL}" ${NPM_REGISTRY_ARG} echo "Building support-chat bot image from committed source..." @@ -126,4 +126,4 @@ echo "Cleaning up old docker build cache..." docker builder prune -af --keep-storage 6GB 2>/dev/null || true docker image prune -f 2>/dev/null || true -echo "Deployment for $BRANCH completed successfully!" \ No newline at end of file +echo "Deployment for $BRANCH completed successfully!"