move cd api to before_script