renuo-cli 4.25.0 → 4.27.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: 2db0ed70e43dfb8e6c5d05d3d08ed4313e7bb15a418cf05920561d55a4973c3e
4
- data.tar.gz: a68fd2324f7d09dac3e1bed32f2d3b8ba3dccaf8ccc6e847b9d9585adc3d5c2a
3
+ metadata.gz: 8b4a37d01ef907f898f0287766c0dd1be73c55a35516e54adda7b1b3c5b798c9
4
+ data.tar.gz: 12e28effd0aaf9a7aaf52dd297a7ef6412f24514ed3940c34649ecf9b968f27b
5
5
  SHA512:
6
- metadata.gz: 25f6a3ae51271d7c93227af3f147ea47ce7d041bb2d1194632eea875e58c161b4ed12794064192614d10ff8407d66179874be15571e90e9db9c0efac3d31bc00
7
- data.tar.gz: db3b684155e2447af9a94fd48e2d9ef2e62e3ff9af11d3f47565cf87ec6a61d53ae841809d3a74e2b15408df9e096f7bc74670850170f4d6c333ce63228e3d61
6
+ metadata.gz: e400a1dd7cc3d3287d478bd4b52ae5964af1dca75138b680368eb5192ae3c57fda3a1924ea168b8c1ec21bd9cc7ca63b23b787d2484361e6e6dfcc9ee8f768ed
7
+ data.tar.gz: 517ba241db1d5bee9ae502e1a71847e7196447c53e84721cd2ce92e3b1452c1630d3331aae76cc5ae085f22289a67a4a35ad7f85fe48bccb8ca4368e8ee06b06
@@ -18,7 +18,8 @@ module Renuo::Cli::Commands::Ci
18
18
 
19
19
  def run
20
20
  puts "[RENUO-CLI] (1/2) Checking build status for revision #{@revision}..."
21
- succeeded = with_streamed_build_logs { poll_build }
21
+ puts "[RENUO-CLI] Waiting for build to start..."
22
+ succeeded = poll { build } && with_streamed_build_logs { poll_build }
22
23
  abort "[RENUO-CLI] build check timed out after #{TIMEOUT_IN_SECONDS} seconds" unless succeeded
23
24
 
24
25
  puts "[RENUO-CLI] (2/2) Checking release status for build #{build_name}..."
@@ -51,7 +52,7 @@ module Renuo::Cli::Commands::Ci
51
52
 
52
53
  def with_streamed_build_logs
53
54
  pid = Process.spawn(
54
- "nctl logs application #{@app} -p #{@project} --type=build -f --lines=100 --since 15m --no-labels",
55
+ "nctl logs build #{build_name} -a #{@app} -p #{@project} -f --lines=100 --no-labels",
55
56
  out: $stdout, err: $stdout
56
57
  )
57
58
  yield
@@ -119,7 +120,6 @@ module Renuo::Cli::Commands::Ci
119
120
 
120
121
  def poll_build
121
122
  poll do
122
- next puts("[RENUO-CLI] no matching build found, waiting...") unless build
123
123
  next true if succeeded?("build", build_name, build_status)
124
124
 
125
125
  @build = nil
@@ -176,7 +176,8 @@ class Renuo::Cli::Commands::CreateDeploioApp # rubocop:disable Metrics/ClassLeng
176
176
  --build-env=SECRET_KEY_BASE="$(rails secret)" \\
177
177
  --language=ruby \\
178
178
  --buildpack-stack=heroku \\
179
- --size=mini
179
+ --size=mini \\
180
+ --replicas=1
180
181
  OUTPUT
181
182
  end
182
183
 
@@ -54,6 +54,7 @@ class Renuo::Cli::Commands::SetupUptimerobot
54
54
 
55
55
  UPTIME_SLACK_CHANNEL_ALERT_CONTACT_ID = "7783511"
56
56
  EUROPE_REGION = "eu"
57
+ SSL_EXPIRATION_REMINDER_DAYS = [3].freeze
57
58
  def create_monitor_params
58
59
  {
59
60
  friendlyName: @url.host.downcase,
@@ -62,10 +63,12 @@ class Renuo::Cli::Commands::SetupUptimerobot
62
63
  interval: 300,
63
64
  timeout: 30,
64
65
  checkSSLErrors: true,
66
+ sslExpirationReminder: true,
65
67
  # notify #uptime after 10 minutes of downtime, without re-notifying
66
68
  assignedAlertContacts: [{ alertContactId: UPTIME_SLACK_CHANNEL_ALERT_CONTACT_ID, threshold: 10, recurrence: 0 }],
67
69
  regionData: { REGION: [EUROPE_REGION], MANUAL_SELECTED: true },
68
- domainExpirationReminder: false
70
+ domainExpirationReminder: false,
71
+ config: { sslExpirationPeriodDays: SSL_EXPIRATION_REMINDER_DAYS }
69
72
  }
70
73
  end
71
74
 
@@ -24,6 +24,7 @@ global_job_config:
24
24
  - source .semaphore/bin/cache_restore rails
25
25
  - bundle config set deployment 'true'
26
26
  - bundle config set path 'vendor/bundle'
27
+ - bundle config set clean 'true'
27
28
  - bundle install --retry 3
28
29
 
29
30
  blocks:
@@ -3,7 +3,7 @@
3
3
  # simplecov:disable
4
4
  module Renuo
5
5
  class Cli
6
- VERSION = "4.25.0"
6
+ VERSION = "4.27.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.25.0
4
+ version: 4.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renuo AG
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: '1.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: '1.1'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: commander
42
42
  requirement: !ruby/object:Gem::Requirement