From 1a8635a98b95b3568ce89d3c13c80b243ba34ee2 Mon Sep 17 00:00:00 2001 From: Subodh Khanduri Date: Fri, 16 Oct 2015 17:30:48 +0530 Subject: [PATCH] Add support for custom tag name --- lib/capistrano/tasks/deploytags.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/deploytags.rake b/lib/capistrano/tasks/deploytags.rake index bbf9c9f..924476c 100644 --- a/lib/capistrano/tasks/deploytags.rake +++ b/lib/capistrano/tasks/deploytags.rake @@ -35,7 +35,7 @@ namespace :deploy do if ENV['NO_DEPLOYTAGS'] || fetch(:no_deploytags, false) info "[deploytags] Skipping deploytags" else - tag_name = CapistranoDeploytags::Helper.git_tag_for(fetch(:stage)) + tag_name = ENV['CUSTOM_DEPLOYTAG'] || fetch(:custom_deploytag) || CapistranoDeploytags::Helper.git_tag_for(fetch(:stage)) latest_revision = fetch(:current_revision) commit_message = CapistranoDeploytags::Helper.commit_message(latest_revision, fetch(:stage))