This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not enable realip logging on-premise and release to github
- Loading branch information
Michal Cichra
committed
Jan 5, 2015
1 parent
eaf9c9e
commit c716508
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'tasks/release.rake' | ||
|
||
namespace :github do | ||
task :release => 'rake:release' do | ||
version = Time.new.strftime('%Y%m%d%H%M') | ||
tar = Pathname("release-#{version}.tar.gz").expand_path | ||
|
||
system('tar', '-zcvf', tar.to_s, 'release') | ||
system('git', 'tag', '-a', version.to_s, '-m', "Release #{version}") | ||
system('git', 'push', '--tags') | ||
|
||
puts "Created release archive: #{tar}" | ||
puts 'Upload it to: https://github.com/APItools/monitor/releases/new' | ||
|
||
puts "Version: #{version}" | ||
end | ||
end | ||
|
||
task github: ['github:release'] |