Closed Enteee closed 6 years ago
Thanks for the bug report! I have a fix in #139. It will still be an error to use git.branch
on a detached head, but the error message will be clear. You can prevent the error by setting a default value.
thank you! :+1:
Note that there is a caveat when integrating dobi
in a gitlab cicd pipeline (and possibly others).
When building a branch, Gitlab will always checkout the branch by it's hash. This means the runner always has a detached head. I understand that there is nothing dobi
can do to get from a detached head state back to the branch (possibly ambiguity since there could be two branches referencing the same commit).
dobi version 0.11 (build: 0027fb7, date: Thu Apr 19 03:22:59 UTC 2018)
Using the following
dobi.yaml
:and
base/noop/Dockerfile
with:
running
dobi image/noop
, I get the following segfault: