Deployments does not initiate /feature.*/ and /feat.*/

circle.yml

#1

i am having a weird problem with deployments based on specific branch. Included is the circle.yml file currently in use. So problem is master, dev1,dev2,dev3 and fix/ branches are behaving as expected but feature and feat branches fails to deploy. Format of the branches are identical to what is used in fix branches ie: feature/circlefix,feat/circlefix, fix/circlefix. I am curious whether feat.*/ somehow a reserved or not whitelisted by default in circle.

deployment:
  hub:
    branch: [master,dev1,dev2,dev3]
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push myrepo/myapp:$CIRCLE_SHA1
      - ./build/send_to_deploybot_inbox $CIRCLE_SHA1
    branch: /feat.*/ 
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push myrepo/myapp:$CIRCLE_SHA1
      - ./build/send_to_deploybot_inbox $CIRCLE_SHA1
    branch: /feature.*/ 
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push myrepo/myapp:$CIRCLE_SHA1
      - ./build/send_to_deploybot_inbox $CIRCLE_SHA1
    branch: /fix.*/ 
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push myrepo/myapp:$CIRCLE_SHA1
      - ./build/send_to_deploybot_inbox $CIRCLE_SHA1

#2

Looks like reformating it like below does the trick.
> deployment:

          feat:
            branch: /feat.*/ 
            commands:
              - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
              - docker push myrepo/myapp:$CIRCLE_SHA1
              - ./build/send_to_deploybot_inbox $CIRCLE_SHA1
          fix:
            branch: /fix.*/ 
            commands:
              - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
              - docker push myrepo/myapp:$CIRCLE_SHA1
              - ./build/send_to_deploybot_inbox $CIRCLE_SHA1
          hub:
            branch: [master,dev1,dev2,dev3]
            commands:
              - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
             - docker push myrepo/myapp:$CIRCLE_SHA1
              - ./build/send_to_deploybot_inbox $CIRCLE_SHA1

#3

Glad you were able to figure this out, and thanks for posting your solution!


#4