Use master ref for deployer tag

parent bbdbea90
......@@ -37,7 +37,7 @@ module ReleaseTools
tag_message << component_strings(version_map).join("\n")
tag_omnibus(tag_name, tag_message, commit)
tag_deployer(tag_name, tag_message, commit)
tag_deployer(tag_name, tag_message, "master")
end
else
trigger_branch_build(version_map)
......@@ -68,13 +68,13 @@ module ReleaseTools
.create_tag(project, name, commit.id, message)
end
def tag_deployer(name, message, commit)
def tag_deployer(name, message, ref)
project = ReleaseTools::Project::Deployer
$stdout.puts "Creating `#{project}` tag `#{name}`".indent(4)
ReleaseTools::GitlabOpsClient
.create_tag(project, name, commit.id, message)
.create_tag(project, name, ref, message)
end
def trigger_branch_build(version_map)
......
......@@ -104,7 +104,7 @@ describe ReleaseTools::PassingBuild do
expect(service).to receive(:update_omnibus)
.and_return(fake_commit)
expect(service).to receive(:tag_deployer)
.with(tag_name, anything, fake_commit)
.with(tag_name, anything, "master")
.and_call_original
service.trigger_build(version_map)
......@@ -114,7 +114,7 @@ describe ReleaseTools::PassingBuild do
.with(
ReleaseTools::Project::Deployer,
tag_name,
fake_commit.id,
"master",
"Auto-deploy tag-name\n\nVERSION: 1.2.3"
)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment