diff options
author | Evan Read <eread@gitlab.com> | 2022-07-25 02:50:27 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-07-25 02:50:27 +0300 |
commit | be1ea121f7037189090965d4fce30581371b9b53 (patch) | |
tree | abe89a59c3ac7cd3435852de27d1787af8867329 | |
parent | c6f57d01b0b98fd7f06556e8d3f9f5cfe2abd2fc (diff) | |
parent | 7a62774b50657d14f44dd765bebd2f88e1c835b6 (diff) |
Merge branch 'axil-lefthook-rakefile' into 'main'
Automatically push the new stable branch with "bin/rake release:single"
See merge request gitlab-org/gitlab-docs!2934
-rw-r--r-- | Rakefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -79,6 +79,10 @@ namespace :release do version = args.version.to_s source_dir = File.expand_path(__dir__) + # Disable lefthook because it was causing some PATH errors + # https://docs.gitlab.com/ee/development/contributing/style_guides.html#disable-lefthook-temporarily + ENV['LEFTHOOK'] = '0' + raise 'You need to specify a version, like 10.1' unless version.match?(%r{\A\d+\.\d+\z}) # Check if local branch exists @@ -130,7 +134,9 @@ namespace :release do `git commit -m 'Release cut #{version}'` puts "\n#{COLOR_CODE_GREEN}INFO: Created new Dockerfile:#{COLOR_CODE_RESET} #{dockerfile}." - puts "#{COLOR_CODE_GREEN}INFO: To push the new branch, run:#{COLOR_CODE_RESET} git push origin #{version}." + puts "#{COLOR_CODE_GREEN}INFO: Pushing the new branch. Don't create a merge request!#{COLOR_CODE_RESET}" + + `git push origin #{version}` end end |