Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex refs for auto_deploy_on #48

Open
jerr0328 opened this issue Jun 23, 2020 · 0 comments
Open

Regex refs for auto_deploy_on #48

jerr0328 opened this issue Jun 23, 2020 · 0 comments

Comments

@jerr0328
Copy link

We would like to be able to use the autodeploy feature for tags matching certain patterns. The use case is as follows:

  • Dev environment will autodeploy on the main branch.
  • Staging environment will autodeploy on tags with a version number and an alpha suffix (GitHub's releases would call this a "pre-release"). Example: v2a2.
  • Production environment will autodeploy on tags with a version number and no suffix (e.g. v2).

One way to avoid confusion between the existing * refs and regex could be to simply use a new option, auto_deploy_on_regex where we could specify a regex, e.g. refs/tags/v\d+(a\d+)?.

Some caveats: You may want to make sure that these regex patterns must match the whole line, not just part of it, to avoid unexpected behavior. If not, it would be important to document how this config works so that the right regex is constructed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant