implement rest api calls for build image and push image