-
Notifications
You must be signed in to change notification settings - Fork 396
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
Automated tag deployments on Travis CI fail with 'src refspec matches more than one` #1150
Comments
It looks like during the
And thus the git error message during |
Here's a real world scenario. We'd like to make a new release for prod using We want:
So, we need default names for:
I'd suggest:
Currently 2 and 3 are conflated. Other idea:
@geerlingguy @danepowell thoughts? @unn I'd also like your input. It seems that we should be somewhat consistent with Pipelines. |
@grasmash - I like: Source: |
I guess I'm not clear on how you ended up with a branch and tag that have the same names. We use the following naming convention to avoid any chance of this:
We've also tweaked the Travis deploy step to support this: I'm open to other standards, but note that this is part of our technical architecture document template so we'd want to coordinate on a change. |
@danepowell - In the case of the two projects I'm on, for releases we just tag master, and the tagging standard isn't really the same between projects as far as I can tell... sometimes it's But anyways, the tags for many projects are cut straight from master (then for hotfixes, a branch is created from that tag). So we have: Source branches:
Acquia Cloud artifact branches:
Source tags:
Acquia Cloud artifact tags:
The BLT setup would also add in a branch per tag to the artifact repo; I don't really care for these branches, and prune them from time to time (since they don't correspond to any branch in the source repo, and just make the list of tags super long in AC's interface). |
Maybe the right answer is to simply never push the "build branch" when a tag is being cut. |
…src refspec matches more than one`
Looks great! |
I was wary of this at first, but I guess as long as we can continue to have tagged release branches on the source repo that's okay. Ideally the build repo is just a place to push code snapshots, and not someplace you actually do development, so you shouldn't need branches in the build repo... |
@geerlingguy Actually, this doesn't work because on the travis worker we're still using the same name for the branch and tag. So, we need a new naming convention. |
Submitted #1171 |
When I create a tag in the source repository, and Travis CI builds that tag, I get the following output and a build failure in Travis CI:
Normal PR merge builds succeed in pushing artifacts to the
master-build
branch.The text was updated successfully, but these errors were encountered: