awes_cli 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deploy_config.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 762baa6d19ad8f2222a0587e9f6fa6480616fdeedefe3c31233757a3bd6cf04d
|
4
|
+
data.tar.gz: 910d6e3701b492d13be6dfd002aa98df457a3eda0b7eb13a055dd8ccdfc77f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bae0f381c1de58cc2a55ac96a4773347a9a530e05a39346622d94f60542584012c6a182745d207a4230700bde70afda9e97cce8f6c35cc5b42eff195a49d448
|
7
|
+
data.tar.gz: 9bcfbaeacee77563d74ceda83699032fd0ef05867c238857dba38f3f3480f300e12aec87009f736fedfac1af76b11752f6bccea2339d8860b4b71697cee42926
|
data/lib/deploy_config.rb
CHANGED
@@ -157,15 +157,15 @@ class DeployConfig
|
|
157
157
|
env_key = env_name[1..-1]
|
158
158
|
env_val = override_envs[env_key] || ENV[env_key] || k8s_deployment_envs[env_key]
|
159
159
|
next if env_val.nil?
|
160
|
-
yaml_file
|
160
|
+
yaml_file.gsub!(env_name, "'#{env_val}'")
|
161
161
|
end
|
162
162
|
|
163
163
|
gcr_url = "gcr.io/#{options[:project_id]}/#{options[:app_name]}"
|
164
164
|
opt_image_url = options[:image_tag] && "#{gcr_url}:#{options[:image_tag]}"
|
165
165
|
|
166
166
|
image_url = "#{gcr_url}:current"
|
167
|
-
image_url = opt_image_url if validate_image_tag_exists?(opt_image_url)
|
168
167
|
image_url = spec[:image] if validate_image_tag_exists?(spec[:image])
|
168
|
+
image_url = opt_image_url if validate_image_tag_exists?(opt_image_url)
|
169
169
|
|
170
170
|
if !validate_image_tag_exists?(image_url)
|
171
171
|
build_image(image_url, gcr_url, options)
|