Deploy only remote tag of git repository

19 views
Skip to first unread message

Jacopo Cappelli

unread,
Aug 19, 2015, 10:52:42 AM8/19/15
to Capistrano

Hi,
i'm trying to deploy a remote tag with Capistrano but i can't understand how do.
I try to use tag on branch but not work.


I see many plugin but permit only to tag deployment (for logging purpose).


Thanks
J

Lee Hambley

unread,
Aug 19, 2015, 10:55:29 AM8/19/15
to Capistrano
Capistrano will accept any valid git ref in the "branch" parameter - assuming this tag/branch/ref exists on the remote as given.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/e4a2bdbf-94da-4595-a794-b1023892cb58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jacopo Cappelli

unread,
Aug 19, 2015, 11:20:11 AM8/19/15
to Capistrano
Hi Lee,
i try to deploy git tag "2.0" as branch name but not work say me that not exist.
I need to use particular syntax?

For the moment i use:
set :branch, "2.0"

Thanks,
J

Lee Hambley

unread,
Aug 19, 2015, 12:00:04 PM8/19/15
to Capistrano
Make sure that you have pushed the branch and/or tag.

Jacopo Cappelli

unread,
Aug 19, 2015, 12:06:34 PM8/19/15
to Capistrano
I'm sure:


I try to implement this script: https://groups.google.com/forum/#!topic/capistrano/Yue0jpPdI8I
That fetch all tags -> Please enter branch_or_tag (Enter a branch or tag name to deploy, available tags include 1.1, 1.2, 2.0, 2.1):
but if i insert any tag say me: ERROR Branch `1.1` not found in repo `g...@bitbucket.org:MYNAME/demo-master`


Thanks,

J

Lee Hambley

unread,
Aug 19, 2015, 12:37:44 PM8/19/15
to Capistrano
Sorry I can't help, perhaps someone else on the list can.
Reply all
Reply to author
Forward
0 new messages