Phil Sandler
Phil Sandler

Reputation: 28036

Does Git Support "Copy To" a Tag?

I think this question requires a bit of background, as there may be a better way to do this in git.

I have a build server that does continuous integration for our main development branch. This works great, and is obviously always looking for changes and building that specific branch.

I also have a QA build, that we want to build and deploy on demand. In the past, when I used SVN, we would create a tag called "QA", which we would simply copy the correct revision to when we wanted to deploy a QA build. We would re-use the QA tag, and this allowed us to point the build configuration at this tag.

What I want to avoid is having to change the build configuration when it comes time to deploy QA. A branch doesn't "feel" like the right answer for this.

How would I achieve this in git without incurring a lot of process overhead?

Upvotes: 2

Views: 74

Answers (1)

VonC
VonC

Reputation: 1326992

I agree with bdesham: if you push the right commit to a dedicated QA branch, your build scheduler can monitor that branch and be sure to build against the right commit (the last one pushed to that QA branch).

Upvotes: 2

Related Questions