Hopefully someone can help - I’m trying to build out a CD pipeline using Drone and have a final issue to resolve.
Can anyone tell me why, when the trigger event is a tag hook, the local Git repo is in a detached state eg
* (HEAD detached at FETCH_HEAD)
This is a problem as I cant get the branch name (by using git branch), this is what we want to put into the tag that the image gets published with. I have tried checking out the commit associated with the tag but the same thing happens.
Any help greatly appreciated