groundskeeper-bitcore 0.16.0 → 0.17.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/.rubocop.yml +3 -0
- data/config/git_config.rb +1 -0
- data/config/rails_config.rb.erb +1 -1
- data/lib/groundskeeper/commands.rb +15 -5
- data/lib/groundskeeper/project.rb +7 -0
- data/lib/groundskeeper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76a66b65c4de7ff36bc401d84e100417c577bd6fc79fa82a3a25e3068303afba
|
|
4
|
+
data.tar.gz: cbebbf63ed96160aacaf9df0d8b51a8064d747ec7a99f51f4b47e708dac74af3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 668833b27cf2c40c28f8124db0ffc95d3452bf6d163408de22de3b0440b556c6276091260003e5d7d2fe7ddcfb40b7d2ad9fdf5a9911237c1bf0c933d9c6dac0
|
|
7
|
+
data.tar.gz: 025d383dd7bed00e1eaf0b64cbd8aead02392798d1051228eb977b1d15ae4f119e95d59eaaccd9165c9d6ad17170cc0c8a45c83928093e03b74451e474b1357f
|
data/.rubocop.yml
CHANGED
data/config/git_config.rb
CHANGED
data/config/rails_config.rb.erb
CHANGED
|
@@ -64,7 +64,7 @@ Rails.application.configure do
|
|
|
64
64
|
authentication: :plain,
|
|
65
65
|
address: 'smtp.mailgun.org',
|
|
66
66
|
port: 587,
|
|
67
|
-
domain: '
|
|
67
|
+
domain: '<%= fetch :smtp_domain %>',
|
|
68
68
|
user_name: ENV['mailgun_db_username'],
|
|
69
69
|
password: ENV['mailgun_db_password']
|
|
70
70
|
}
|
|
@@ -5,6 +5,8 @@ require "mina"
|
|
|
5
5
|
require "pp"
|
|
6
6
|
require "open3"
|
|
7
7
|
|
|
8
|
+
class VersionError < StandardError; end
|
|
9
|
+
|
|
8
10
|
module Groundskeeper
|
|
9
11
|
# Formulas for managing releases and deployments.
|
|
10
12
|
# rubocop:disable Metrics/ClassLength
|
|
@@ -373,18 +375,26 @@ module Groundskeeper
|
|
|
373
375
|
end
|
|
374
376
|
end
|
|
375
377
|
|
|
376
|
-
# rubocop:disable Metrics/MethodLength
|
|
378
|
+
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
|
377
379
|
def update_deployed_issues
|
|
380
|
+
tries = 0
|
|
381
|
+
|
|
378
382
|
announce_step(
|
|
379
383
|
"Check deployed version at #{website.uri}/#{Website::VERSION_PATH}"
|
|
380
384
|
)
|
|
381
|
-
deployed_version = website.version
|
|
382
385
|
|
|
383
|
-
|
|
386
|
+
begin
|
|
387
|
+
deployed_version = website.version
|
|
388
|
+
|
|
389
|
+
raise VersionError unless deployed_version == ENV[TAG]
|
|
390
|
+
|
|
384
391
|
console.say("# deployment successful", :green)
|
|
385
392
|
transition_remote_issues deployed_version
|
|
386
393
|
announce_in_slack deployed_version
|
|
387
|
-
|
|
394
|
+
rescue VersionError
|
|
395
|
+
tries += 1
|
|
396
|
+
sleep 5
|
|
397
|
+
retry if tries < 3
|
|
388
398
|
# :nocov:
|
|
389
399
|
console.say(
|
|
390
400
|
"something went wrong: expected version #{ENV[TAG]}, " \
|
|
@@ -394,7 +404,7 @@ module Groundskeeper
|
|
|
394
404
|
# :nocov:
|
|
395
405
|
end
|
|
396
406
|
end
|
|
397
|
-
# rubocop:enable Metrics/MethodLength
|
|
407
|
+
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
|
398
408
|
|
|
399
409
|
# :nocov:
|
|
400
410
|
def release_version
|
|
@@ -17,6 +17,7 @@ module Groundskeeper
|
|
|
17
17
|
DB_ENV_VARIABLES_KEY = "db_env_variables"
|
|
18
18
|
SENTRY_DSN_KEY = "sentry_dsn"
|
|
19
19
|
SENTRY_PROJECT_KEY = "sentry_project"
|
|
20
|
+
SMTP_DOMAIN = "smtp_domain"
|
|
20
21
|
SSL_CERTIFICATE_FILE_KEY = "SSLCertificateFile"
|
|
21
22
|
SSL_CERTIFICATE_CHAIN_FILE_KEY = "SSLCertificateChainFile"
|
|
22
23
|
SSL_CERTIFICATE_KEY_FILE_KEY = "SSLCertificateKeyFile"
|
|
@@ -65,6 +66,12 @@ module Groundskeeper
|
|
|
65
66
|
end
|
|
66
67
|
# :nocov:
|
|
67
68
|
|
|
69
|
+
# :nocov:
|
|
70
|
+
def smtp_domain
|
|
71
|
+
details[SMTP_DOMAIN] || ""
|
|
72
|
+
end
|
|
73
|
+
# :nocov:
|
|
74
|
+
|
|
68
75
|
# :nocov:
|
|
69
76
|
def rvm_ruby_version
|
|
70
77
|
details[RVM_RUBY_VERSION_KEY] || ""
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groundskeeper-bitcore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BIT Core
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain:
|
|
11
11
|
- certs/ericcf.pem
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: jira-ruby
|