control build and deploy result through env variable