If you get a new passport, the eTA you received with your old passport is no longer valid.
Any time a passport is changed, you must reapply for travel authorization using the eTA process with your new passport details.