k8s-deploy 0.0.2 → 0.0.5

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
- SHA1:
3
- metadata.gz: 8d15916782174de67fb36bb5aba738adaeb8e6d0
4
- data.tar.gz: 6c68cac0cb03db700fba05b1862d3088d8a21cf3
2
+ SHA256:
3
+ metadata.gz: 35cae78ec4e070514c4869eb8bc07719fb787b63ccaae938d0dba4bde27c7494
4
+ data.tar.gz: 212bb941a2748df27fe127291fee0df739f243e97e026430186d4da2e9707c5d
5
5
  SHA512:
6
- metadata.gz: 2ebe797868e36cd416ba4c3f56e2d9b92fca3012efe18311de2348a1302974b9f64cbf74d7974f7453a5c123795ce2785267376249b35541cf2638c877a63c35
7
- data.tar.gz: 05e4f240b55bd3a12e9faf8a918b95ec5ab23d04370622d62c475aa0e18ec2423f44677afdc390b17872d242ab111899eb08a7f068ba6e7c431efa2086ff0539
6
+ metadata.gz: 2addd5279671b9d793c1309c637abedb60aa6bad93723ffc88645452fe6600d861936c63e6ac07e266644d0bda42bc4a051008182c26cce962252fe9caffb89c
7
+ data.tar.gz: 9b10ef8e12c368faeb792819b8dc9a76b4bf0c9d67b1163285da6411e36519cadf01184e18c9ea4ec68f9feee85b21ef86e91d78abd84ccbfc44c619e80a265e
data/README.md CHANGED
@@ -40,6 +40,7 @@ Configuration
40
40
  production: # environment name
41
41
  git_branch: master
42
42
  dockerfile: ./Dockerfile
43
+ docker_platform: linux/amd64
43
44
  container_registry: gcr.io
44
45
  gcloud_project_name: your-gcloud-project-name
45
46
  kubernetes_context: your-cluster-context
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  def print_gcloud_check_project(configuration)
30
30
  conf_gcloud_project = configuration['gcloud_project_name']
31
- current_gcloud_project = `gcloud config get-value project`
31
+ current_gcloud_project = `gcloud beta config get-value project`
32
32
  check_result = current_gcloud_project.include?(conf_gcloud_project)
33
33
 
34
34
  puts 'Your GCloud project should be ' \
@@ -1,6 +1,7 @@
1
1
  CONFIGURATION_OPTIONS = {
2
2
  'git_branch' => 'GIT branch',
3
3
  'dockerfile' => 'Path to Dockerfile',
4
+ 'docker_platform' => 'Target platform, f.e linux/amd64 or linux/arm64',
4
5
  'container_registry' => 'Docker container registry',
5
6
  'gcloud_project_name' => 'GCloud project name',
6
7
  'kubernetes_context' => 'K8s context',
@@ -44,7 +44,8 @@ def print_deploy_build(configuration)
44
44
  puts
45
45
 
46
46
  dockerfile_path = configuration['dockerfile']
47
- command = "docker build -t #{new_image_name} -f #{dockerfile_path} ."
47
+ docker_platform = configuration['docker_platform']
48
+ command = "docker buildx build --platform #{docker_platform} -t #{new_image_name} -f #{dockerfile_path} ."
48
49
  command_output(command)
49
50
  puts
50
51
 
@@ -53,7 +54,7 @@ end
53
54
 
54
55
  def print_deploy_push(configuration)
55
56
  new_image_name = build_full_image_name(configuration)
56
- command = "gcloud docker push #{new_image_name}"
57
+ command = "docker push #{new_image_name}"
57
58
  command_output(command)
58
59
  puts
59
60
  system command
@@ -3,5 +3,5 @@
3
3
  class K8sDeploy
4
4
  ##
5
5
  # @return [String] the library version
6
- VERSION = '0.0.2'.freeze
6
+ VERSION = '0.0.5'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k8s-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleksii Leonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2022-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -61,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubyforge_project:
65
- rubygems_version: 2.6.4
64
+ rubygems_version: 3.0.3.1
66
65
  signing_key:
67
66
  specification_version: 4
68
67
  summary: automate deploy to Kubernetes.