Can I pass the code ship env ex.CI_BRANCH to docker build. I'm must be use it to run bulid backpack separate build for staging or production by CI_BRANCH
Asked
Active
Viewed 96 times
1 Answers
0
There is currently no way to utilize the Codeship environment variables during the image build time.
You can however pass along these environment variables during run time with a step command:
command: /bin/bash -c './script_dependent_on_timestamp.sh $CI_TIMESTAMP'

Drew Kitch
- 201
- 1
- 3