Republic of Ireland striker Andy Keogh has signed a two-year contract with A-League club Perth Glory.