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 +5 -5
- data/README.md +1 -0
- data/lib/k8s-deploy/tasks/check.rb +1 -1
- data/lib/k8s-deploy/tasks/configuration.rb +1 -0
- data/lib/k8s-deploy/tasks/deploy.rb +3 -2
- data/lib/k8s-deploy/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 35cae78ec4e070514c4869eb8bc07719fb787b63ccaae938d0dba4bde27c7494
|
4
|
+
data.tar.gz: 212bb941a2748df27fe127291fee0df739f243e97e026430186d4da2e9707c5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2addd5279671b9d793c1309c637abedb60aa6bad93723ffc88645452fe6600d861936c63e6ac07e266644d0bda42bc4a051008182c26cce962252fe9caffb89c
|
7
|
+
data.tar.gz: 9b10ef8e12c368faeb792819b8dc9a76b4bf0c9d67b1163285da6411e36519cadf01184e18c9ea4ec68f9feee85b21ef86e91d78abd84ccbfc44c619e80a265e
|
data/README.md
CHANGED
@@ -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
|
-
|
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 = "
|
57
|
+
command = "docker push #{new_image_name}"
|
57
58
|
command_output(command)
|
58
59
|
puts
|
59
60
|
system command
|
data/lib/k8s-deploy/version.rb
CHANGED
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
|
+
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:
|
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
|
-
|
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.
|