awes_cli 0.0.9 → 0.0.10
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 +3 -3
- 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: f2bf8402db7e5c099a93c54ecfa9922c669dcd14c8909fda0cec077fd6230aab
|
4
|
+
data.tar.gz: e69c603d00b5c50eb31a6fa74381128e504feed24b193e19cd4152d45e86e9cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8545a4fce94d82f06c3a4570dfa51239745f54e149fa80aeefb03e12934b2ad74ffc178a4a54e9ab9ac32a7d66e4e5e805f9701943ebee117056e68feb637115
|
7
|
+
data.tar.gz: 436fe114c02c2d877d040a150f67e2e1261dc1aaf0ab801c3e16f1d0ebcdab37ba8e947d79073773fdf34a54f136429a7c1a1f394879d01f19cb9d0d87390c0b
|
data/lib/deploy_config.rb
CHANGED
@@ -161,11 +161,11 @@ class DeployConfig
|
|
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
|
-
# opt_image_url = options[:image_tag] && "#{gcr_url}:#{options[:image_tag]}"
|
166
|
-
|
167
|
-
# image_url = opt_image_url || spec[:image] || "#{gcr_url}:current"
|
168
166
|
image_url = "#{gcr_url}:current"
|
167
|
+
image_url = opt_image_url if validate_image_tag_exists?(opt_image_url)
|
168
|
+
image_url = spec[:image] if validate_image_tag_exists?(spec[:image])
|
169
169
|
|
170
170
|
if !validate_image_tag_exists?(image_url)
|
171
171
|
build_image(image_url, gcr_url, options)
|