work on deploy_spec with prepare_cache and checkout_branch_commit