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

Build Rules - Regex Matching #13

Open
ShaneMcC opened this issue Jul 29, 2019 · 1 comment
Open

Build Rules - Regex Matching #13

ShaneMcC opened this issue Jul 29, 2019 · 1 comment

Comments

@ShaneMcC
Copy link

DockerHub allows creating automated build rules that match a regex on the source ref of a build rather than needing to create separate rules for every target, this is nice for setting up a rule for "build every tagged release" automatically. (And would tie in with #6)

@csmith
Copy link
Member

csmith commented Feb 18, 2020

This is now done, but not really shown very well in the UI.

When creating a rule the refspec can be a regexp, and then push targets can contain references to the capturing groups in the format of $1, $2 etc.

Remaining work:

  • Make the UI show this is possible
  • Make the "Launch new build" button do something useful (it currently uses the configured refspec, regexp syntax and all)
  • Expose the ref spec in the build logs table

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

2 participants