Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
do not enable realip logging on-premise and release to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Cichra committed Jan 5, 2015
1 parent eaf9c9e commit c716508
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test?
def nginx(input)
config = configs.fetch('nginx')

config['logging'] = production?
config['logging'] = production? unless config.has_key?('logging')
config['release'] = release

if root = config['root']
Expand Down
1 change: 1 addition & 0 deletions release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ nginx:
lua_code_cache: 'on'
# this one is a function directly in release.rb
# logging:
logging: false
include:
- shared_dict.conf
- global.conf
Expand Down
19 changes: 19 additions & 0 deletions tasks/github.rake
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']

0 comments on commit c716508

Please sign in to comment.