vidar 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/workflows/auto-approve.yml +3 -2
- data/.github/workflows/auto-merge.yml +0 -3
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +23 -20
- data/lib/vidar/cli.rb +18 -0
- data/lib/vidar/version.rb +1 -1
- data/vidar.gemspec +1 -1
- metadata +4 -5
- data/.github/workflows/auto-merge-dependencies.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986fa6cad5809e6da811c62569da04a2cb84a82ade6185ba1a9c2f4e28650f2c
|
4
|
+
data.tar.gz: 4dc0e96055bf9562fc106b7c75a0cded021eda713d024d7838409b1d60ba3572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5bf1466a14f5d1c1db96feda71317d64b27e46530cf7b5410b1c0afb81319f35178e781e4ace185b95abbee8ab49bc1d6f505dfe37221ab5facf87c9307b6d
|
7
|
+
data.tar.gz: bb2ba2a926cda73e3315e30345d2f6dcc48f7892435c69b070e761c50105f1daf2cd6a08c6aa11a2d9e05e0a66f18c2adb3b1089972c5a3bcd9b2f3c57b45f07
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.11
|
@@ -1,8 +1,9 @@
|
|
1
1
|
name: Auto approve dependency upgrades and hot-fix PRs
|
2
2
|
on:
|
3
3
|
pull_request_target:
|
4
|
-
types:
|
5
|
-
|
4
|
+
types:
|
5
|
+
- labeled
|
6
|
+
- ready_for_review
|
6
7
|
jobs:
|
7
8
|
auto-approve:
|
8
9
|
runs-on: ubuntu-latest
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.11.0 - 2024-06-04
|
4
|
+
|
5
|
+
Add set_image command.
|
6
|
+
|
7
|
+
## 1.10.0 - 2024-02-29
|
8
|
+
|
9
|
+
Drop ruby 3.0 support and add 3.3 support.
|
10
|
+
|
3
11
|
## 1.9.2 - 2023-12-11
|
4
12
|
|
5
13
|
Improves and simplifies how docker layers are cached and used. Adds `build_and_cache_base` command.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vidar (1.
|
4
|
+
vidar (1.11.0)
|
5
5
|
colorize
|
6
6
|
faraday
|
7
7
|
thor (~> 1.0)
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
public_suffix (>= 2.0.2, < 6.0)
|
14
14
|
ast (2.4.2)
|
15
15
|
awesome_print (1.9.2)
|
16
|
-
bigdecimal (3.1.
|
16
|
+
bigdecimal (3.1.8)
|
17
17
|
coderay (1.1.3)
|
18
18
|
colorize (1.1.0)
|
19
19
|
crack (1.0.0)
|
@@ -25,25 +25,25 @@ GEM
|
|
25
25
|
faraday-net_http (3.1.0)
|
26
26
|
net-http
|
27
27
|
hashdiff (1.1.0)
|
28
|
-
json (2.7.
|
28
|
+
json (2.7.2)
|
29
29
|
language_server-protocol (3.17.0.3)
|
30
|
-
method_source (1.
|
30
|
+
method_source (1.1.0)
|
31
31
|
net-http (0.4.1)
|
32
32
|
uri
|
33
33
|
parallel (1.24.0)
|
34
|
-
parser (3.3.0
|
34
|
+
parser (3.3.2.0)
|
35
35
|
ast (~> 2.4.1)
|
36
36
|
racc
|
37
|
-
prism (0.24.0)
|
38
37
|
pry (0.14.2)
|
39
38
|
coderay (~> 1.1)
|
40
39
|
method_source (~> 1.0)
|
41
|
-
public_suffix (5.0.
|
42
|
-
racc (1.
|
40
|
+
public_suffix (5.0.5)
|
41
|
+
racc (1.8.0)
|
43
42
|
rainbow (3.1.1)
|
44
|
-
rake (13.1
|
45
|
-
regexp_parser (2.9.
|
46
|
-
rexml (3.2.
|
43
|
+
rake (13.2.1)
|
44
|
+
regexp_parser (2.9.2)
|
45
|
+
rexml (3.2.8)
|
46
|
+
strscan (>= 3.0.9)
|
47
47
|
rspec (3.13.0)
|
48
48
|
rspec-core (~> 3.13.0)
|
49
49
|
rspec-expectations (~> 3.13.0)
|
@@ -53,11 +53,11 @@ GEM
|
|
53
53
|
rspec-expectations (3.13.0)
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
55
|
rspec-support (~> 3.13.0)
|
56
|
-
rspec-mocks (3.13.
|
56
|
+
rspec-mocks (3.13.1)
|
57
57
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
58
|
rspec-support (~> 3.13.0)
|
59
59
|
rspec-support (3.13.1)
|
60
|
-
rubocop (1.
|
60
|
+
rubocop (1.64.1)
|
61
61
|
json (~> 2.3)
|
62
62
|
language_server-protocol (>= 3.17.0)
|
63
63
|
parallel (~> 1.10)
|
@@ -65,27 +65,30 @@ GEM
|
|
65
65
|
rainbow (>= 2.2.2, < 4.0)
|
66
66
|
regexp_parser (>= 1.8, < 3.0)
|
67
67
|
rexml (>= 3.2.5, < 4.0)
|
68
|
-
rubocop-ast (>= 1.
|
68
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
69
69
|
ruby-progressbar (~> 1.7)
|
70
70
|
unicode-display_width (>= 2.4.0, < 3.0)
|
71
|
-
rubocop-ast (1.31.
|
72
|
-
parser (>= 3.3.0
|
73
|
-
prism (>= 0.24.0)
|
71
|
+
rubocop-ast (1.31.3)
|
72
|
+
parser (>= 3.3.1.0)
|
74
73
|
rubocop-capybara (2.20.0)
|
75
74
|
rubocop (~> 1.41)
|
76
75
|
rubocop-factory_bot (2.25.1)
|
77
76
|
rubocop (~> 1.41)
|
78
77
|
rubocop-rake (0.6.0)
|
79
78
|
rubocop (~> 1.0)
|
80
|
-
rubocop-rspec (2.
|
79
|
+
rubocop-rspec (2.30.0)
|
81
80
|
rubocop (~> 1.40)
|
82
81
|
rubocop-capybara (~> 2.17)
|
83
82
|
rubocop-factory_bot (~> 2.22)
|
83
|
+
rubocop-rspec_rails (~> 2.28)
|
84
|
+
rubocop-rspec_rails (2.28.3)
|
85
|
+
rubocop (~> 1.40)
|
84
86
|
ruby-progressbar (1.13.0)
|
87
|
+
strscan (3.1.0)
|
85
88
|
thor (1.3.1)
|
86
89
|
unicode-display_width (2.5.0)
|
87
90
|
uri (0.13.0)
|
88
|
-
webmock (3.23.
|
91
|
+
webmock (3.23.1)
|
89
92
|
addressable (>= 2.8.0)
|
90
93
|
crack (>= 0.3.2)
|
91
94
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -106,4 +109,4 @@ DEPENDENCIES
|
|
106
109
|
webmock
|
107
110
|
|
108
111
|
BUNDLED WITH
|
109
|
-
2.5.
|
112
|
+
2.5.9
|
data/lib/vidar/cli.rb
CHANGED
@@ -135,6 +135,24 @@ module Vidar
|
|
135
135
|
Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
|
136
136
|
end
|
137
137
|
|
138
|
+
desc "set_image", "Set image for k8s deployment"
|
139
|
+
method_option :revision, required: false
|
140
|
+
method_option :kubectl_context, required: false
|
141
|
+
method_option :destination, required: false, default: "deployments,cronjobs"
|
142
|
+
method_option :container, required: false, default: "*"
|
143
|
+
method_option :all, required: false, type: :boolean, default: true
|
144
|
+
def set_image
|
145
|
+
revision = options[:revision] || Config.get!(:revision)
|
146
|
+
kubectl_context = options[:kubectl_context] || Config.get!(:kubectl_context)
|
147
|
+
Log.info "Current kubectl context: #{kubectl_context}"
|
148
|
+
|
149
|
+
destination = options[:destination]
|
150
|
+
container = options[:container]
|
151
|
+
all = options[:all]
|
152
|
+
Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
|
153
|
+
Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
|
154
|
+
end
|
155
|
+
|
138
156
|
desc "release", "Build and publish docker images"
|
139
157
|
def release
|
140
158
|
Log.info "Build and release #{Config.get!(:image)}:#{Config.get!(:revision)}"
|
data/lib/vidar/version.rb
CHANGED
data/vidar.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md'
|
18
18
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
19
|
|
20
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 3.
|
20
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
|
21
21
|
|
22
22
|
spec.files = Dir.chdir(__dir__) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
@@ -69,7 +69,6 @@ files:
|
|
69
69
|
- ".github/ISSUE_TEMPLATE/story.md"
|
70
70
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
71
71
|
- ".github/workflows/auto-approve.yml"
|
72
|
-
- ".github/workflows/auto-merge-dependencies.yml"
|
73
72
|
- ".github/workflows/auto-merge.yml"
|
74
73
|
- ".github/workflows/ci.yml"
|
75
74
|
- ".gitignore"
|
@@ -112,14 +111,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
111
|
requirements:
|
113
112
|
- - ">="
|
114
113
|
- !ruby/object:Gem::Version
|
115
|
-
version: 3.
|
114
|
+
version: 3.2.0
|
116
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
116
|
requirements:
|
118
117
|
- - ">="
|
119
118
|
- !ruby/object:Gem::Version
|
120
119
|
version: '0'
|
121
120
|
requirements: []
|
122
|
-
rubygems_version: 3.5.
|
121
|
+
rubygems_version: 3.5.11
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: K8s deployment tools based on thor
|
@@ -1,24 +0,0 @@
|
|
1
|
-
name: automerge-dependencies
|
2
|
-
on:
|
3
|
-
pull_request_review:
|
4
|
-
types:
|
5
|
-
- submitted
|
6
|
-
check_suite:
|
7
|
-
types:
|
8
|
-
- completed
|
9
|
-
label:
|
10
|
-
types:
|
11
|
-
- created
|
12
|
-
status: {}
|
13
|
-
jobs:
|
14
|
-
automerge:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
steps:
|
17
|
-
- name: automerge-dependencies
|
18
|
-
uses: pascalgn/automerge-action@v0.16.2
|
19
|
-
env:
|
20
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
|
-
MERGE_METHOD: squash
|
22
|
-
MERGE_DELETE_BRANCH: true
|
23
|
-
MERGE_LABELS: "dependencies,!automerge blocked"
|
24
|
-
MERGE_REMOVE_LABELS: ""
|