k8s-deploy 0.0.4 → 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
2
  SHA256:
3
- metadata.gz: 5e8e2b4ada8b8b303e7eb1db54ccb2f330213c91d21f4da5cd963b043817d2a0
4
- data.tar.gz: 9f6e01dad4f0f24b0593156e15aaf01bc02d72dbd544d6e9e74b4922588e5413
3
+ metadata.gz: 35cae78ec4e070514c4869eb8bc07719fb787b63ccaae938d0dba4bde27c7494
4
+ data.tar.gz: 212bb941a2748df27fe127291fee0df739f243e97e026430186d4da2e9707c5d
5
5
  SHA512:
6
- metadata.gz: 69bac38d4196ed1e111b97e3d364352ad3cb9cc3eda69f547c6283eec9cb14934a8dce41861437be496c2ead60b42913a589db8b8331cf8986006703d14ac03f
7
- data.tar.gz: ed73c372db227b34a563bb000f2d93288118c32bb88d233f1fe1e7603204189cc77bf0e52bbb10cca78662cb7528ce0f7ed608c3697b88316b0ab56b8f086ab9
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
@@ -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
 
@@ -3,5 +3,5 @@
3
3
  class K8sDeploy
4
4
  ##
5
5
  # @return [String] the library version
6
- VERSION = '0.0.4'.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.4
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: 2020-08-26 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,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.0.3
64
+ rubygems_version: 3.0.3.1
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: automate deploy to Kubernetes.