Hi.
Is it possible to do different command depending on what branches I’m deploying?
I tried adding the following to my deployment sections:
deployment:
staging:
branch: /devops.*/
commands:
- rsync -av ~/ test@192.168.1.72:/www/${CIRCLE_BRANCH//\//_}
branch: /feature.*/
commands:
- rsync -av ~/ test@192.168.1.72:/www/$(cut -d "_" -f 2 <<< $CIRCLE_BRANCH)
This resulted in the deployment section was completely ignored, though. Any ideas?