renuo-cli 4.28.0 → 4.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 352c9cb95e2c7548026938080ff46625617536757aa4653aa3412ac35dead312
4
- data.tar.gz: dc0de5b1c6781136fe7b13d441c823b648a5efa36c3d28c1cc74e1f8ed8c2e2b
3
+ metadata.gz: ea0940fbcb4f6adcee05932e3706029dfd00c20aae778925992fd20c4e4122d7
4
+ data.tar.gz: d00eb2084014053724e2c8dfdc6e4b1595bdf3edbfd7d3185d6edcc628bbfdd1
5
5
  SHA512:
6
- metadata.gz: fe555bad89b04add4100bb6eb259a0194b1f30cb7d245dcd02418a7d65b6b2117c8903a3379747eacee069355060aefe3fd62798b03254d97a885af2d1d24f62
7
- data.tar.gz: e77579335bff65754f3871272a7df43eca8b9728c7f1c314b4c39665520bdb8347c5a184868fe81f33d1518d8b66a914fa74a83d50f1fe9bc46057705f0d8da0
6
+ metadata.gz: aee1f47d1bac9b8082fb450f6b14e4225d6af5b30233cc129fa6b1559871d0901b40924ebbbf163ab88ea493a124cddacb3725fb087acdab47b58fd8088906ab
7
+ data.tar.gz: 672f554707e987a99d6dae554b2585a0bf4e7add4f69187e8a06df303e61e94938d6af17e28a54f2c8aa4624b6bafb3f2a9c2b5d56de06a69b14e7ab7bbe4a64
@@ -53,8 +53,9 @@ class Renuo::Cli::Commands::ConfigureSemaphore
53
53
  end
54
54
 
55
55
  def create_semaphore_deployment_targets
56
- system("sem create dt main -p #{project_name}")
57
- system("sem create dt develop -p #{project_name}")
56
+ %w[main develop].each do |branch|
57
+ system("sem create dt #{branch} -p #{project_name} --object-rule branch,exact,#{branch}")
58
+ end
58
59
  end
59
60
 
60
61
  def render(template_file)
@@ -108,7 +108,9 @@ class Renuo::Cli::Commands::Release # rubocop:disable Metrics/ClassLength
108
108
  end
109
109
 
110
110
  def checkout_project
111
- abort(">> Project not found.") unless system("#{MOVE_TO_TMP_FOLDER} && git clone git@#{@host}:#{@repo_path}.git")
111
+ # Blobless clone: file contents are only fetched when needed, so large files in the history are skipped
112
+ clone = "git clone --filter=blob:none git@#{@host}:#{@repo_path}.git"
113
+ abort(">> Project not found.") unless system("#{MOVE_TO_TMP_FOLDER} && #{clone}")
112
114
 
113
115
  system(cmd_in_folder("git checkout #{main_branch} && git pull origin #{main_branch} &&" \
114
116
  "git checkout #{develop_branch} && git pull origin #{develop_branch}"))
@@ -45,7 +45,7 @@ class Renuo::Cli::Services::Deploio
45
45
  def dropped_keys(*path, kind:)
46
46
  env = copied_spec.dig(*path) || []
47
47
  env.reject { |variable| keep_envs.include?(variable["sensitive"] ? "sensitive-#{kind}" : kind) }
48
- .map { |variable| variable["name"] }
48
+ .pluck("name")
49
49
  end
50
50
 
51
51
  def copied_spec
@@ -3,7 +3,7 @@
3
3
  # simplecov:disable
4
4
  module Renuo
5
5
  class Cli
6
- VERSION = "4.28.0"
6
+ VERSION = "4.29.0"
7
7
  NAME = "renuo-cli"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.28.0
4
+ version: 4.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renuo AG
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 4.0.21
184
+ rubygems_version: 4.0.23
185
185
  specification_version: 4
186
186
  summary: The Renuo CLI automates some common workflows.
187
187
  test_files: []