Skip to content
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

tag & push branch names in detached mode #13

Closed
dkapanidis opened this issue Jul 7, 2015 · 0 comments
Closed

tag & push branch names in detached mode #13

dkapanidis opened this issue Jul 7, 2015 · 0 comments

Comments

@dkapanidis
Copy link
Member

Currently when 'captain push' is issued in detached mode of a commit with a branch name, captain issues the following error:

[CAPTAIN] Skipping push of app in detached mode

How to reproduce:

  • Checkout git with commit-id (detached mode)
git checkout 2225ad4

Git tree example:

* 2225ad4 (HEAD, origin/example, example) Commit example 2
* ef14e6a Commit example 1

Rational:

This is basically the way most CI servers work, they checkout in detached mode, so in order to tag docker image with the branch name we need captain to be able to identify the branches in detached mode and use them.

@dkapanidis dkapanidis changed the title When in git detached mode of a commit with branch name, captain push should be able to push the branch name tag & push branch names in detached mode Jul 8, 2015
dkapanidis added a commit that referenced this issue Jul 8, 2015
dkapanidis added a commit that referenced this issue Jul 8, 2015
dkapanidis added a commit that referenced this issue Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant