Skip to content

What is the proper strategy for running this inside GitLab CI/CD? #128

Answered by mtkennerly
doulighan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks for the detailed question.

When you push a tag to gitlab, it starts a tag pipeline. The tag pipeline a) has no associated branch, and b) uses a detached head.

I'm not as familiar with GitLab as I am with GitHub, but I think you could fix it with some combination of these GitLab settings:

  • GIT_DEPTH: 0 in the variables section
  • git checkout "$CI_COMMIT_REF_NAME" in the before_script section

Is there a way to tell the library to use --merged HEAD instead of --merged master?

It uses HEAD by default, and you can customize it with the tag-branch option. Where are you seeing it default to master?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@doulighan
Comment options

Answer selected by doulighan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants