Skip to content

Commit

Permalink
Fix build and release process
Browse files Browse the repository at this point in the history
  • Loading branch information
udzura committed Nov 9, 2016
1 parent af8fca0 commit ac6d690
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ namespace :release do

task :shipit => [:tarball, :run_ghr]

multitask :packages => [:deb, :rpm]
desc "Build all of packages in parallel"
multitask :packages => [:deb, :rpm, :rpm6]

task :deb do
Dir.chdir(pwd) { sh "docker-compose build deb && docker-compose run deb" }
Expand All @@ -158,15 +159,20 @@ namespace :release do
Dir.chdir(pwd) { sh "docker-compose build rpm && docker-compose run rpm" }
end

task :rpm6 do
Dir.chdir(pwd) { sh "docker-compose build rpm6 && docker-compose run rpm6" }
end

desc "release packages to packagecloud"
task :packagecloud do
Dir.chdir pwd do
sh "package_cloud push udzura/haconiwa/ubuntu/trusty pkg/haconiwa_#{Haconiwa::VERSION}-1_amd64.deb"
sh "package_cloud push udzura/haconiwa/ubuntu/xenial pkg/haconiwa_#{Haconiwa::VERSION}-1_amd64.deb"
sh "package_cloud push udzura/haconiwa/debian/jessie pkg/haconiwa_#{Haconiwa::VERSION}-1_amd64.deb"
sh "package_cloud push udzura/haconiwa/el/7 pkg/haconiwa-#{Haconiwa::VERSION}-1.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/fedora/23 pkg/haconiwa-#{Haconiwa::VERSION}-1.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/fedora/24 pkg/haconiwa-#{Haconiwa::VERSION}-1.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/el/7 pkg/haconiwa-#{Haconiwa::VERSION}-1.el7.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/el/6 pkg/haconiwa-#{Haconiwa::VERSION}-1.el6.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/fedora/23 pkg/haconiwa-#{Haconiwa::VERSION}-1.el7.x86_64.rpm"
sh "package_cloud push udzura/haconiwa/fedora/24 pkg/haconiwa-#{Haconiwa::VERSION}-1.el7.x86_64.rpm"
end
end
end
Expand Down

0 comments on commit ac6d690

Please sign in to comment.