I have JS application that consumes REST API specified in API_HOST
environment variable.
Application has two deployment pipelines configured on Codeship for each branch (develop
, master
). For each branch I would like to provide different REST endpoint URL stored in API_HOST
. Currently I have API_HOST
variable defined under Environment
tab but it doesn't work as it's globally defined for all deployment pipelines. Exporting API_HOST
variable within Custom Script
doesn't work neither.
I want to provide different API_HOST
environment variable for every single deployment pipeline. How can I achieve that?