hu 1.5.17 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hu/deploy.rb +8 -3
- data/lib/hu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e3c577d05a4aa439647dd75aff46c5b190505e6
|
4
|
+
data.tar.gz: a42898b365935ed89ac75af95fb7ab2fc940e3b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f73b47f3f664c111753d7cd865538f81f2155a2633e05c1f97f6bb8a2ac235c520402eb2e6281c6a146227b297ecc2369a26457ea9ccfefcb5794492218c7e67
|
7
|
+
data.tar.gz: 3adc670c1ffb1de4aec66ce457613c7f58f3e4a4c8b4cccae586ce2e8558997a8994f7578fc0f47e7e30d3400f3a964fa36226614860a492425c034ac8de9b2c
|
data/lib/hu/deploy.rb
CHANGED
@@ -357,7 +357,7 @@ EOM
|
|
357
357
|
'RELEASE_TAG' => release_tag,
|
358
358
|
'GIT_MERGE_AUTOEDIT' => 'no'
|
359
359
|
}
|
360
|
-
unless 0 == finish_release(release_tag, env)
|
360
|
+
unless 0 == finish_release(release_tag, env, tf.path)
|
361
361
|
abort_merge
|
362
362
|
puts '*** ERROR! Could not finish release *** '.color(:red)
|
363
363
|
puts
|
@@ -404,7 +404,7 @@ EOM
|
|
404
404
|
|
405
405
|
def show_pipeline_status(pipeline_name, stag_app_name, prod_app_name, release_tag, clear = true)
|
406
406
|
table = TTY::Table.new header: ['', 'commit', 'tag', 'last_modified', 'last_modified_by', 'dynos', '']
|
407
|
-
busy 'synchronizing', :
|
407
|
+
busy 'synchronizing', :dots
|
408
408
|
ts = []
|
409
409
|
workers = []
|
410
410
|
tpl_row = ['?', '', '', '', '', '', '']
|
@@ -892,7 +892,7 @@ EOM
|
|
892
892
|
EOS
|
893
893
|
end
|
894
894
|
|
895
|
-
def finish_release(release_tag, env)
|
895
|
+
def finish_release(release_tag, env, changelog_path)
|
896
896
|
env.each { |k, v| ENV[k] = v }
|
897
897
|
if File.executable? '.hu/hooks/pre_release'
|
898
898
|
run_each <<-EOS.strip_heredoc
|
@@ -907,6 +907,11 @@ EOM
|
|
907
907
|
# Finish release
|
908
908
|
git flow release finish #{release_tag}
|
909
909
|
|
910
|
+
# Adjust merge message
|
911
|
+
git checkout master
|
912
|
+
git commit --amend -F #{changelog_path}
|
913
|
+
git tag -f #{release_tag}
|
914
|
+
|
910
915
|
# Push final master (#{release_tag}) to origin
|
911
916
|
git push origin master
|
912
917
|
git push origin --tags
|
data/lib/hu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|