vidar 1.13.0.rc1 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6f92a203680ee7463edb1aaff645c09db42216cadfe900e3695d62b8cd4ab34
4
- data.tar.gz: c0a671fd573fc10e6a7543c13180d66faf53545f34aecf49cafd6adef95f8327
3
+ metadata.gz: f964bc107c9bed7c2324a04cab2fa114bca4d9daac6f1cc1dc30fbff45ad40cc
4
+ data.tar.gz: d90e034359bf4081f8d9b452ef09bcfce3a48402c05269df43c406dd5327582a
5
5
  SHA512:
6
- metadata.gz: 4f8339afe484debe18424cb285ced98e442d12da2b4a638ecfb6e59cb925e04e2f762ccd123358f8bc3e2b57c8432620b7a0e290b5203d36d75d9154dc68fedb
7
- data.tar.gz: 100c2d9e2d62142f3568092f346013079c8a3392575192b7fc5954d60dc9670f511d37b6648bb6f97ec8b78fa95a97c6ddec9c2a5b8e30d59026d3d9976e85e7
6
+ metadata.gz: 279749ca74b69ede488090f17a95b2c7a063e8822691b5cd33a3584a398b688dcdaca01228dce6bb7fc9c6f5baecb85092cdb02ff003626ef93a3fb84a9933ab
7
+ data.tar.gz: d9f88a89a90794f927a95c76b4447a2b97d8c60532d083b7cd04c247c393d59b4c192dd0bb5cfdea1ac438b2e07c1cc249bde7ecb0f1b2c52a7f8e0c63296a7a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.13.0 - 2024-07-23
4
+
5
+ Make docker compose command configurable and use `docker compose` instead `docker-compose` by default
6
+
7
+ ## 1.12.0 - 2024-07-09
8
+
9
+ Make it possible to customize max_tries in monitor_deploy_status (#92)
10
+
3
11
  ## 1.11.0 - 2024-06-04
4
12
 
5
13
  Add set_image command.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.13.0.rc1)
4
+ vidar (1.13.1)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -39,7 +39,7 @@ GEM
39
39
  pry (0.14.2)
40
40
  coderay (~> 1.1)
41
41
  method_source (~> 1.0)
42
- public_suffix (6.0.0)
42
+ public_suffix (6.0.1)
43
43
  racc (1.8.0)
44
44
  rainbow (3.1.1)
45
45
  rake (13.2.1)
data/lib/vidar/cli.rb CHANGED
@@ -97,7 +97,7 @@ module Vidar
97
97
  Log.info "Current kubectl context: #{kubectl_context}"
98
98
 
99
99
  Log.info "Looking for deploy hook..."
100
- template_name, error, status = Open3.capture3 "kubectl get cronjob deploy-hook-template -n #{Config.get!(:namespace)} -o name --ignore-not-found=true"
100
+ template_name, error, status = Run.kubectl_capture3("get cronjob deploy-hook-template -o name --ignore-not-found=true")
101
101
 
102
102
  slack_notification = SlackNotification.get
103
103
  honeycomb_notification = HoneycombNotification.get
data/lib/vidar/config.rb CHANGED
@@ -5,6 +5,7 @@ module Vidar
5
5
 
6
6
  DEFAULT_OPTIONS = {
7
7
  compose_file: -> { "docker-compose.ci.yml" },
8
+ compose_cmd: -> { "docker compose" },
8
9
  default_branch: -> { (DEFAULT_BRANCHES & branches).first || DEFAULT_BRANCHES.first },
9
10
  current_branch: -> { (ENV['SEMAPHORE_GIT_WORKING_BRANCH'] || `git rev-parse --abbrev-ref HEAD`.strip).tr("/", "-") },
10
11
  revision: -> { `git rev-parse HEAD`.strip },
data/lib/vidar/run.rb CHANGED
@@ -7,13 +7,17 @@ module Vidar
7
7
 
8
8
  def docker_compose(command)
9
9
  args = %w[revision current_branch].map { |arg| "#{arg.upcase}=#{Config.get!(arg.to_sym)}" }
10
- system("#{args.join(' ')} docker compose -f #{Config.get!(:compose_file)} #{command}") || exit(1)
10
+ system("#{args.join(' ')} #{Config.get!(:compose_cmd)} -f #{Config.get!(:compose_file)} #{command}") || exit(1)
11
11
  end
12
12
 
13
13
  def kubectl(command, namespace: Config.get!(:namespace))
14
14
  system("#{kubectl_envs_string}kubectl --namespace=#{namespace} #{command}") || exit(1)
15
15
  end
16
16
 
17
+ def kubectl_capture3(command, namespace: Config.get!(:namespace))
18
+ Open3.capture3("#{kubectl_envs_string}kubectl #{command} --namespace=#{namespace}") || exit(1)
19
+ end
20
+
17
21
  def kubectl_envs_string
18
22
  https_proxy = Config.deploy_config.https_proxy
19
23
  "HTTPS_PROXY=#{https_proxy} " if https_proxy
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.13.0.rc1'.freeze
2
+ VERSION = '1.13.1'.freeze
3
3
  end
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.13.0.rc1
4
+ version: 1.13.1
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-07-23 00:00:00.000000000 Z
12
+ date: 2024-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize