There are two types of masses: rest mass and relativistic mass. The rest mass is an intrinsic property of the material and is also known as invariant mass (for reasons you will know soon).
The relativistic mass depends on the velocity whereas the rest mass is independent of the velocity.
The relatvistic mass increases with velocity as follows:
$$m = m_0\gamma = m_0 \frac{1}{\sqrt{1-\frac{v^2}{c^2}}}$$
where $m_0$ is the rest mass, $\gamma$ is the Lorentz factor, $c$ is the speed of light and $v$ is the speed of the object.
For $v << c$, the $\gamma$ term is approximately equal to one. For such velocities, we assume that the mass of the object remains fixed.
The graph given below represents the variation of the Lorentz factor ($\gamma$) with speed of the object.

In our day to day experiences, we do not deal with such fast moving objects. Therefore, we needn't worry about the relativistic effects. For simple problems in physics, we ignore such effects and take the mass to be equal to rest mass for all velocities.
However, as the speed of the object approaches the speed of light, the relativistic effect cannot be ignored.
As you supply the energy, the velocity keeps increasing. As the velocity increases, the mass increases. As the mass increases, you need to supply more energy than supplied previously to cause the same change in velocity. As the speed of the object approaches the speed of light, the energy that needs to be supplied to increase the object's velocity approaches infinity. Therefore, an object can never reach the speed of light (unless it is massless which allows it to travel at the speed of light).