deploy_rubygem 0.60.0.4.ga6cf712 → 0.60.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.kitchen/logs/kitchen.log +29 -29
- data/.rspec +0 -1
- data/.rubocop.yml +11 -77
- data/LICENSE.txt +0 -21
- data/Rakefile +11 -6
- data/bin/deploy_jimbodragon +1 -1
- data/bin/deploy_rubygem +2 -2
- data/bin/prepare_workstation +0 -1
- data/bin/test_deploy_rubygem +1 -1
- data/exe/deploy_rubygem +1 -1
- data/lib/deploy_rubygem/cookbook.rb +49 -63
- data/lib/deploy_rubygem/deploy_rubygem_options.rb +106 -0
- data/lib/deploy_rubygem/inspec.rb +24 -3
- data/lib/deploy_rubygem/kitchen.rb +46 -0
- data/lib/deploy_rubygem/project.rb +121 -0
- data/lib/deploy_rubygem/rubygem.rb +63 -37
- data/lib/deploy_rubygem/version.rb +16 -1
- data/lib/deploy_rubygem.rb +3 -120
- data.tar.gz.sig +3 -1
- metadata +35 -30
- metadata.gz.sig +0 -0
- data/.circleci/config.yml +0 -93
- data/.gitignore +0 -58
- data/Gemfile +0 -12
- data/bin/console +0 -11
- data/bin/deploy_jimbo_management_site_website +0 -8
- data/bin/local_test_deploy_rubygem +0 -8
- data/bin/setup +0 -8
- data/deploy_rubygem.gemspec +0 -77
- data/lib/deploy_rubygem/chef_supermarket.rb +0 -7
- data/spec/deploy_rubygem_spec.rb +0 -21
- data/spec/spec_helper.rb +0 -15
- data/spec/unit_deploy_rubygem.rb +0 -49
@@ -0,0 +1,121 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# DeployRubygem - deploy a gem using rake
|
4
|
+
# Containing a class
|
5
|
+
module DeployRubygem
|
6
|
+
# Using Project to deploy and manage Project
|
7
|
+
class Project
|
8
|
+
attr_reader :project_options, :cookbooks, :compliance_profile
|
9
|
+
|
10
|
+
def initialize(new_project_options)
|
11
|
+
@project_options = new_project_options
|
12
|
+
@cookbooks = project_options[:cookbooks]&.map do |cookbook_name, cookbook_options|
|
13
|
+
new_cookbook_option = cookbook_options.dup
|
14
|
+
new_cookbook_option[:project_name] = cookbook_name
|
15
|
+
new_cookbook_option[:chefrepo_path] = chefrepo_path
|
16
|
+
Cookbook.new(new_cookbook_option)
|
17
|
+
end
|
18
|
+
@compliance_profile = Inspec.new(project_options[:compliance_profile])
|
19
|
+
end
|
20
|
+
|
21
|
+
# Wrapping GVB to fetch project version
|
22
|
+
class DeployVersion
|
23
|
+
attr_reader :path
|
24
|
+
|
25
|
+
def initialize(git_path)
|
26
|
+
@path = git_path
|
27
|
+
end
|
28
|
+
|
29
|
+
def execute_in_folder
|
30
|
+
current_folder = Dir.pwd
|
31
|
+
Dir.chdir path
|
32
|
+
get_gvb = yield if block_given?
|
33
|
+
Dir.chdir current_folder
|
34
|
+
get_gvb
|
35
|
+
end
|
36
|
+
|
37
|
+
def method_missing(method_name)
|
38
|
+
execute_in_folder { GVB.send(method_name) }
|
39
|
+
end
|
40
|
+
|
41
|
+
def respond_to_missing?(method_name)
|
42
|
+
GVB.methods.include?(method_name)
|
43
|
+
end
|
44
|
+
|
45
|
+
def patch_bump
|
46
|
+
execute_in_folder { system('git version-bump patch') }
|
47
|
+
end
|
48
|
+
|
49
|
+
def short_version
|
50
|
+
Gem::Version.new("#{major_version}.#{minor_version}.#{patch_version}")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def project_name
|
55
|
+
project_options[__method__]
|
56
|
+
end
|
57
|
+
|
58
|
+
def binaries
|
59
|
+
project_options[__method__]
|
60
|
+
end
|
61
|
+
|
62
|
+
def dependencies
|
63
|
+
project_options[__method__]
|
64
|
+
end
|
65
|
+
|
66
|
+
def path
|
67
|
+
project_options[__method__]
|
68
|
+
end
|
69
|
+
|
70
|
+
def git
|
71
|
+
project_options[__method__]
|
72
|
+
end
|
73
|
+
|
74
|
+
def chefrepo_git
|
75
|
+
project_options[__method__]
|
76
|
+
end
|
77
|
+
|
78
|
+
def chefrepo_path
|
79
|
+
project_options[__method__]
|
80
|
+
end
|
81
|
+
|
82
|
+
def deploy_cookbooks
|
83
|
+
cookbooks.each(&:deploy)
|
84
|
+
end
|
85
|
+
|
86
|
+
def release_cookbooks
|
87
|
+
project_options[:cookbooks].each(&:release)
|
88
|
+
end
|
89
|
+
|
90
|
+
def change_to_directory(git_path, git_url)
|
91
|
+
system("git clone #{git_url}") unless Dir.exist?(chefrepo_path)
|
92
|
+
Dir.chdir(git_path)
|
93
|
+
git_path
|
94
|
+
end
|
95
|
+
|
96
|
+
def change_to_project_folder
|
97
|
+
change_to_directory(path, git)
|
98
|
+
end
|
99
|
+
|
100
|
+
def change_to_chefrepo
|
101
|
+
change_to_directory(chefrepo_path, chefrepo_git)
|
102
|
+
end
|
103
|
+
|
104
|
+
def test_compliance
|
105
|
+
change_to_chefrepo
|
106
|
+
compliance_profile.update
|
107
|
+
compliance_profile.apply
|
108
|
+
end
|
109
|
+
|
110
|
+
def git_commit
|
111
|
+
system('git add .') || return
|
112
|
+
system("git commit -m 'Self validated for version #{GVB.version}'") || return
|
113
|
+
system('git push') || abort("Cannot push #{project_name} #{GVB.version}")
|
114
|
+
end
|
115
|
+
|
116
|
+
def gvb_version
|
117
|
+
@gvb_version ||= DeployVersion.new(path)
|
118
|
+
@gvb_version
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -1,61 +1,87 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
|
3
|
-
|
4
|
-
attr_reader :project_options
|
5
|
-
|
6
|
-
def initialize(new_project_options)
|
7
|
-
@project_options = new_project_options
|
8
|
-
end
|
9
|
-
|
10
|
-
def project_name
|
11
|
-
project_options[__method__]
|
12
|
-
end
|
13
|
-
|
14
|
-
def binaries
|
15
|
-
project_options[__method__]
|
16
|
-
end
|
17
|
-
|
18
|
-
def dependencies
|
19
|
-
project_options[__method__]
|
20
|
-
end
|
21
|
-
|
22
|
-
def path
|
23
|
-
project_options[__method__]
|
24
|
-
end
|
3
|
+
require_relative 'project'
|
4
|
+
require_relative 'cookbook'
|
25
5
|
|
26
|
-
|
6
|
+
# DeployRubygem - deploy a gem using rake
|
7
|
+
# Containing a class
|
8
|
+
module DeployRubygem
|
9
|
+
# Using Rubygem to deploy and manage Rubygem
|
10
|
+
class Rubygem < Project
|
11
|
+
def deploy_dependencies
|
27
12
|
dependencies.each do |git_depends|
|
28
13
|
Dir.chdir(::File.join(ENV['HOME'], git_depends))
|
29
14
|
system('git pull')
|
30
15
|
|
31
|
-
system(
|
32
|
-
|
16
|
+
system('git add .')
|
17
|
+
|
33
18
|
system("git commit -m \"Deploying #{project_name}_$(git version-bump show)\"")
|
34
19
|
|
35
20
|
system('git push')
|
36
21
|
end
|
22
|
+
end
|
37
23
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
binaries.each do |executable|
|
24
|
+
def git_prepare
|
25
|
+
binaries.each do |executable|
|
42
26
|
system("git add bin/#{executable}")
|
43
27
|
end
|
44
|
-
|
28
|
+
|
45
29
|
system('git add deploy_rubygem.gemspec')
|
46
30
|
system('git add .circleci/config.yml')
|
47
|
-
|
31
|
+
|
48
32
|
system('git add lib')
|
49
|
-
|
33
|
+
end
|
34
|
+
|
35
|
+
def git_sync
|
36
|
+
Dir.chdir(path)
|
37
|
+
system('git pull')
|
38
|
+
end
|
39
|
+
|
40
|
+
def push_minor_bump
|
50
41
|
system("git commit -m \"Deploying #{project_name}_$(git version-bump show)\"")
|
51
|
-
|
52
42
|
system('git version-bump patch') # <major|minor|patch|show>
|
53
|
-
|
54
43
|
system('gem build')
|
55
|
-
|
56
44
|
system('gem push deploy_rubygem-$(git version-bump show).gem')
|
57
|
-
|
58
45
|
system('git version-bump minor') # <major|minor|patch|show>
|
59
46
|
end
|
47
|
+
|
48
|
+
def deploy_with_git
|
49
|
+
deploy_dependencies
|
50
|
+
git_sync
|
51
|
+
git_prepare
|
52
|
+
|
53
|
+
push_minor_bump
|
54
|
+
end
|
55
|
+
|
56
|
+
def rake_test
|
57
|
+
File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
|
58
|
+
system('bundle') || return
|
59
|
+
system('bundle install') || return
|
60
|
+
system('rake') || return
|
61
|
+
# system('rake build') &&
|
62
|
+
# system('rake install:local') &&
|
63
|
+
end
|
64
|
+
|
65
|
+
def rake_release
|
66
|
+
change_to_project_folder
|
67
|
+
git_commit
|
68
|
+
system('rake install') || abort("Cannot rake install #{project_name} #{GVB.version}")
|
69
|
+
# system('rake release') || exit(105)
|
70
|
+
end
|
71
|
+
|
72
|
+
def release
|
73
|
+
change_to_project_folder
|
74
|
+
rake_test
|
75
|
+
rake_release
|
76
|
+
end
|
77
|
+
|
78
|
+
def deploy
|
79
|
+
change_to_chefrepo
|
80
|
+
deploy_cookbooks
|
81
|
+
change_to_project_folder
|
82
|
+
|
83
|
+
# release
|
84
|
+
test_compliance
|
85
|
+
end
|
60
86
|
end
|
61
87
|
end
|
@@ -1,6 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'git-version-bump'
|
4
|
+
|
5
|
+
require_relative 'rubygem'
|
6
|
+
require_relative 'deploy_rubygem_options'
|
7
|
+
|
8
|
+
# Set version for DeployRubygem
|
4
9
|
module DeployRubygem
|
5
|
-
|
10
|
+
def self.project_name
|
11
|
+
'deploy_rubygem'
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.new_deploy_rubygem
|
15
|
+
@self_project = Rubygem.new(DeployRubygemOptions.new.compile) if @self_project.nil?
|
16
|
+
@self_project
|
17
|
+
end
|
18
|
+
|
19
|
+
# VERSION = new_deploy_rubygem.gvb_version.short_version
|
20
|
+
VERSION = '0.60.5'
|
6
21
|
end
|
data/lib/deploy_rubygem.rb
CHANGED
@@ -1,124 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
|
3
|
-
require 'deploy_rubygem/cookbook'
|
4
|
-
require 'deploy_rubygem/version'
|
3
|
+
require_relative 'deploy_rubygem/version'
|
5
4
|
|
5
|
+
# DeployRubygem - deploy a gem using rake
|
6
6
|
module DeployRubygem
|
7
|
-
def self.project_name
|
8
|
-
'deploy_rubygem'
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.self_project_options
|
12
|
-
{
|
13
|
-
project_name: project_name,
|
14
|
-
git: 'git@github.com:JimboDragonGit/deploy_rubygem.git',
|
15
|
-
chefrepo_git: 'git@github.com:JimboDragonGit/jimbodragon.git',
|
16
|
-
binaries: %w(
|
17
|
-
deploy_rubygem
|
18
|
-
prepare_workstation
|
19
|
-
test_deploy_rubygem
|
20
|
-
deploy_jimbodragon
|
21
|
-
),
|
22
|
-
dependencies: %w(
|
23
|
-
deploy_rubygem
|
24
|
-
jimbo_management_site
|
25
|
-
),
|
26
|
-
path: DeployRubygem.deploy_rubygem_path,
|
27
|
-
cookbooks: {
|
28
|
-
jimbo_management_site: {
|
29
|
-
chef_repo: DeployRubygem.chefrepo_path,
|
30
|
-
git: 'git@github.com:JimboDragonGit/jimbo_management_site.git',
|
31
|
-
kitchens: %w(base),
|
32
|
-
profiles: %w(
|
33
|
-
jimbodragon-accept
|
34
|
-
jimbodragon-applications
|
35
|
-
jimbodragon-deploy-context
|
36
|
-
jimbodragon-environment
|
37
|
-
jimbodragon-git/
|
38
|
-
jimbodragon-linux-baseline
|
39
|
-
jimbodragon-manual-push
|
40
|
-
jimbodragon-push
|
41
|
-
jimbodragon-services
|
42
|
-
jimbodragon-users
|
43
|
-
jimbodragon-workstation
|
44
|
-
),
|
45
|
-
execute_profiles: %w(jimbodragon-accept),
|
46
|
-
groups: %w(base)
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
end
|
51
|
-
|
52
|
-
def self.self_deploy
|
53
|
-
Rubygem.new(self_project_options).deploy
|
54
|
-
end
|
55
|
-
|
56
|
-
def self.deploy_jimbo_management_site
|
57
|
-
self_project_options[:cookbooks].each do |cookbook_name, cookbook_options|
|
58
|
-
Cookbook.new(cookbook_name, cookbook_options).deploy
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
def self.deploy_rubygem_path
|
64
|
-
File.join(ENV['HOME'], project_name)
|
65
|
-
end
|
66
|
-
|
67
|
-
|
68
|
-
def self.jimbo_management_site_path
|
69
|
-
File.join(ENV['HOME'], 'jimbo_management_site')
|
70
|
-
end
|
71
|
-
|
72
|
-
def self.chefrepo_path
|
73
|
-
"/usr/local/chef/repo/jimbodragon"
|
74
|
-
end
|
75
|
-
|
76
|
-
|
77
|
-
def self.change_to_directory(git_path, git_url)
|
78
|
-
if not Dir.exist?(chefrepo_path)
|
79
|
-
system("git clone #{git_url}")
|
80
|
-
end
|
81
|
-
Dir.chdir(git_path)
|
82
|
-
git_path
|
83
|
-
end
|
84
|
-
|
85
|
-
def self.main
|
86
|
-
DeployRubygem.change_to_directory(DeployRubygem.chefrepo_path, self_project_options[:chefrepo_git])
|
87
|
-
DeployRubygem.change_to_directory(DeployRubygem.jimbo_management_site_path, self_project_options[:cookbooks][:jimbo_management_site][:git])
|
88
|
-
DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, self_project_options[:git])
|
89
|
-
|
90
|
-
DeployRubygem.self_deploy
|
91
|
-
DeployRubygem.deploy_jimbo_management_site
|
92
|
-
end
|
93
|
-
|
94
|
-
def self.rake_test
|
95
|
-
File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
|
96
|
-
system("bundle") || exit(100)
|
97
|
-
system("rake") || exit(101)
|
98
|
-
system("rake build") || exit(102)
|
99
|
-
system("rake install:local") || exit(103)
|
100
|
-
end
|
101
|
-
|
102
|
-
def self.rake_release
|
103
|
-
git_commit
|
104
|
-
system("rake install") || exit(104)
|
105
|
-
system("rake release") || exit(105)
|
106
|
-
end
|
107
|
-
|
108
|
-
def self.git_commit
|
109
|
-
system("git add .") || exit(106)
|
110
|
-
system("git commit -m 'Self valifated for version #{GVB.version}'") || exit(107)
|
111
|
-
system("git push") || exit(108)
|
112
|
-
end
|
113
|
-
|
114
|
-
def self.release
|
115
|
-
DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, self_project_options[:git])
|
116
|
-
rake_test
|
117
|
-
rake_release
|
118
|
-
end
|
119
|
-
|
120
|
-
def self.deploy_jimbodragon
|
121
|
-
Dir.chdir(jimbo_management_site_path)
|
122
|
-
system('sudo rm -rf /tmp/jimbodragon/; chef exec inspec exec compliance/profiles/jimbodragon-chef')
|
123
|
-
end
|
124
7
|
end
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
�ڸ�D��)��b�%H*�����
|
2
|
+
P�!�iEH�;��Ʈ�:��0}c����%ޤ�Wq��l�<+;� bG{n��F���˻��Z���C/z����V�L�\�Z�B]��S�M��ӻ�a��R3א���Jh�]M��ś��X���b�r�Z������8���F����m�b��Q�(ݞI�5�ڟ�U��������v�|kj�(L�Fє`*�cj,
|
3
|
+
�
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_rubygem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.60.
|
4
|
+
version: 0.60.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -33,16 +33,16 @@ cert_chain:
|
|
33
33
|
n6Pwa3EckU/5n8N6gUJTAmGyu6Ncu1pbsZtH450+BJ2z82JNXomdFYlnG8+1XNlj
|
34
34
|
3M1sBFUHvqrBg2hQkQcLHokmQYrYsRK5A7HrxwKcmwM=
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2024-
|
36
|
+
date: 2024-06-08 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: git-version-bump
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
|
-
type: :
|
45
|
+
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
@@ -50,33 +50,47 @@ dependencies:
|
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '0'
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
53
|
+
name: rspec
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- - "
|
56
|
+
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
59
|
-
type: :
|
58
|
+
version: 3.13.0
|
59
|
+
type: :runtime
|
60
60
|
prerelease: false
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- - "
|
63
|
+
- - "~>"
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 3.13.0
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
67
|
+
name: rspec-core
|
68
68
|
requirement: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- - "
|
70
|
+
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
72
|
+
version: 3.13.0
|
73
73
|
type: :runtime
|
74
74
|
prerelease: false
|
75
75
|
version_requirements: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
79
|
+
version: 3.13.0
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rspec-support
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 3.13.0
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 3.13.0
|
80
94
|
- !ruby/object:Gem::Dependency
|
81
95
|
name: rubocop-rake
|
82
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,39 +134,30 @@ extra_rdoc_files:
|
|
120
134
|
- README.md
|
121
135
|
- LICENSE
|
122
136
|
files:
|
123
|
-
- ".circleci/config.yml"
|
124
|
-
- ".gitignore"
|
125
137
|
- ".kitchen/logs/kitchen.log"
|
126
138
|
- ".rspec"
|
127
139
|
- ".rubocop.yml"
|
128
140
|
- CHANGELOG.md
|
129
141
|
- CODE_OF_CONDUCT.md
|
130
|
-
- Gemfile
|
131
142
|
- LICENSE
|
132
143
|
- LICENSE.txt
|
133
144
|
- README.md
|
134
145
|
- Rakefile
|
135
|
-
- bin/console
|
136
|
-
- bin/deploy_jimbo_management_site_website
|
137
146
|
- bin/deploy_jimbodragon
|
138
147
|
- bin/deploy_rubygem
|
139
148
|
- bin/deploy_rubygem_manually
|
140
|
-
- bin/local_test_deploy_rubygem
|
141
149
|
- bin/prepare_workstation
|
142
|
-
- bin/setup
|
143
150
|
- bin/test_deploy_rubygem
|
144
|
-
- deploy_rubygem.gemspec
|
145
151
|
- exe/deploy_rubygem
|
146
152
|
- lib/deploy_rubygem.rb
|
147
|
-
- lib/deploy_rubygem/chef_supermarket.rb
|
148
153
|
- lib/deploy_rubygem/cookbook.rb
|
154
|
+
- lib/deploy_rubygem/deploy_rubygem_options.rb
|
149
155
|
- lib/deploy_rubygem/inspec.rb
|
156
|
+
- lib/deploy_rubygem/kitchen.rb
|
157
|
+
- lib/deploy_rubygem/project.rb
|
150
158
|
- lib/deploy_rubygem/rubygem.rb
|
151
159
|
- lib/deploy_rubygem/version.rb
|
152
160
|
- sig/deploy_rubygem.rbs
|
153
|
-
- spec/deploy_rubygem_spec.rb
|
154
|
-
- spec/spec_helper.rb
|
155
|
-
- spec/unit_deploy_rubygem.rb
|
156
161
|
homepage: https://github.com/JimboDragonGit/deploy_rubygem
|
157
162
|
licenses:
|
158
163
|
- MIT
|
@@ -169,12 +174,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
174
|
requirements:
|
170
175
|
- - ">="
|
171
176
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0'
|
177
|
+
version: '3.0'
|
173
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
179
|
requirements:
|
175
|
-
- - "
|
180
|
+
- - ">="
|
176
181
|
- !ruby/object:Gem::Version
|
177
|
-
version:
|
182
|
+
version: '0'
|
178
183
|
requirements: []
|
179
184
|
rubygems_version: 3.2.32
|
180
185
|
signing_key:
|
metadata.gz.sig
CHANGED
Binary file
|
data/.circleci/config.yml
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
|
3
|
-
jobs:
|
4
|
-
latest_install:
|
5
|
-
docker:
|
6
|
-
- image: cimg/ruby:3.1.2
|
7
|
-
auth:
|
8
|
-
username: $DOCKERHUB_USER
|
9
|
-
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
|
10
|
-
|
11
|
-
environment: {}
|
12
|
-
working_directory: /home/circleci/deploy_rubygem
|
13
|
-
steps:
|
14
|
-
- checkout
|
15
|
-
- run: |
|
16
|
-
set -xu
|
17
|
-
echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
|
18
|
-
echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' >> ~/.ssh/known_hosts
|
19
|
-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts
|
20
|
-
cat ~/.ssh/known_hosts
|
21
|
-
ssh git@github.com || echo
|
22
|
-
gem install deploy_rubygem
|
23
|
-
chefrepo_checkout:
|
24
|
-
docker:
|
25
|
-
- image: cimg/ruby:3.1.2
|
26
|
-
auth:
|
27
|
-
username: $DOCKERHUB_USER
|
28
|
-
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
|
29
|
-
|
30
|
-
environment: {}
|
31
|
-
working_directory: /home/circleci/deploy_rubygem
|
32
|
-
steps:
|
33
|
-
- checkout
|
34
|
-
- run: |
|
35
|
-
set -xu
|
36
|
-
echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
|
37
|
-
echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' >> ~/.ssh/known_hosts
|
38
|
-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts
|
39
|
-
cat ~/.ssh/known_hosts
|
40
|
-
ssh git@github.com || echo
|
41
|
-
gem install deploy_rubygem
|
42
|
-
deploy_public:
|
43
|
-
docker:
|
44
|
-
- image: cimg/ruby:3.1.2
|
45
|
-
auth:
|
46
|
-
username: $DOCKERHUB_USER
|
47
|
-
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
|
48
|
-
|
49
|
-
environment: {}
|
50
|
-
working_directory: /home/circleci/deploy_rubygem
|
51
|
-
steps:
|
52
|
-
- checkout
|
53
|
-
- run: |
|
54
|
-
set -xu
|
55
|
-
echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
|
56
|
-
echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' >> ~/.ssh/known_hosts
|
57
|
-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts
|
58
|
-
cat ~/.ssh/known_hosts
|
59
|
-
ssh git@github.com || echo
|
60
|
-
gem install deploy_rubygem
|
61
|
-
|
62
|
-
deploy_rubygem
|
63
|
-
execute_local:
|
64
|
-
docker:
|
65
|
-
- image: cimg/ruby:3.1.2
|
66
|
-
auth:
|
67
|
-
username: $DOCKERHUB_USER
|
68
|
-
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
|
69
|
-
|
70
|
-
environment: {}
|
71
|
-
working_directory: /home/circleci/deploy_rubygem
|
72
|
-
steps:
|
73
|
-
- checkout
|
74
|
-
- run: |
|
75
|
-
ruby bin/deploy_rubygem
|
76
|
-
#...
|
77
|
-
workflows:
|
78
|
-
version: 2
|
79
|
-
deploy_rubygem:
|
80
|
-
jobs:
|
81
|
-
- latest_install:
|
82
|
-
filters:
|
83
|
-
branches:
|
84
|
-
only: master
|
85
|
-
- execute_local:
|
86
|
-
filters:
|
87
|
-
branches:
|
88
|
-
only: master
|
89
|
-
- deploy_public:
|
90
|
-
filters:
|
91
|
-
branches:
|
92
|
-
only: master
|
93
|
-
|