Keep the tank full, use a product like power service additive and maybe use a diesel fuel biocide if you are worried about storage but it should be ok regardless.
with stabilizer gas can last 2-3 years and diesel can last up to 10 years, the rule of thumb is the more refined it is the shorter the shelf life. Also gas bought in the winter months will store longer that gas bought in summer because they put more butane in it for easier starting