Hello, I’m trying to set up my pre_build hook in Docker so that if a build is triggered by a release branch, certain dependencies are updated. Our release branches follow a pretty standard release/<release_name> pattern, however the following conditional is not being triggered by our release branches:
if [[ "$SOURCE_BRANCH" = "develop" ]]; then
elif [[ "$SOURCE_BRANCH" == "release/.*" ]]; then
Based on the sed commands I’ve used in Docker hooks previously, i’m not sure why this regex wouldn’t work. Any ideas?