awes_cli 0.0.7 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/deploy_config.rb +6 -6
- 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,21 +157,21 @@ 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
|
+
opt_image_url = options[:image_tag] && "#{gcr_url}:#{options[:image_tag]}"
|
|
164
165
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
image_url = spec[:image] || "#{gcr_url}:current"
|
|
166
|
+
image_url = "#{gcr_url}:current"
|
|
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)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
yaml_file.gsub(/\$IMAGE_URL/, image_url)
|
|
174
|
+
yaml_file.gsub!(/\$IMAGE_URL/, image_url)
|
|
175
175
|
|
|
176
176
|
FileUtils.mkdir_p('./tmp')
|
|
177
177
|
|