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 +4 -4
- data/lib/renuo/cli/commands/ci/check_deploio_status.rb +3 -3
- data/lib/renuo/cli/commands/create_deploio_app.rb +2 -1
- data/lib/renuo/cli/commands/setup_uptimerobot.rb +4 -1
- data/lib/renuo/cli/templates/semaphore/semaphore.yml.erb +1 -0
- data/lib/renuo/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b4a37d01ef907f898f0287766c0dd1be73c55a35516e54adda7b1b3c5b798c9
|
|
4
|
+
data.tar.gz: 12e28effd0aaf9a7aaf52dd297a7ef6412f24514ed3940c34649ecf9b968f27b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
|
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
|
|
data/lib/renuo/cli/version.rb
CHANGED
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.
|
|
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: '
|
|
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: '
|
|
39
|
+
version: '1.1'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: commander
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|