Skip to content

Commit

Permalink
helper for tagging recipe repos when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed May 3, 2018
1 parent f0d693a commit 9632bee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ end
task :docker_dev do
sh "docker build -t simplygenius/atmos-dev -f Dockerfile.dev ."
end

def tag(repo_dir)
puts "Tagging #{File.basename(repo_dir)}"
Dir.chdir(repo_dir)
system("git tag -m \"Version #{version}\" #{version_tag}") || raise("tag failed")
system("git push --tags") || raise("push failed")
end

task :coordinated_release => :release do
version = Bundler::GemHelper.gemspec.version
version_tag = "v#{version}"

tag("../atmos-recipes")
tag("../atmos-pro-recipes")
end

0 comments on commit 9632bee

Please sign in to comment.