Warning "should be a either a deploy section with commands, a Heroku deploy section or a CodeDeploy deploy section"

circle.yml

#1

Hi!

I’m getting the following warning on my builds:

CIRCLE.YML - 1 WARNINGS
Dang! We spotted something wrong with your circle.yml. These may be causing your builds to fail. We recommend that you fix them as soon as possible. You may want to look at our docs or contact us us if you’re having trouble.
deployment.staging should be a either a deploy section with commands, a Heroku deploy section or a CodeDeploy deploy section

I’m pretty sure it’s related to the last change made to circle.yml where I added both a tag and branch to the section.

Before:

deployment:
  staging:
    branch: /master/
    commands:
      (...)

After:

deployment:
  staging:
    branch: /master/
    tag: /^\d+\.\d+\.\d+-rc.\d+$/
    commands:
      (...)

Despite the warning it’s behaving as desired: if either the tag or the branch name matches it’s deployed as usual. Is this warning related to something else or this? Should this behaviour be set up in another way? Thanks in advance for any help!

Moret


#2

I’m having the exact same problem, a year later!

Did you ever figure out what the issue was? Did you have to choose either a branch or a tag?


#3