The government said the interests of the country and its people would be given the highest priority in joining any defence agreement or alliance