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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deploy_config.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 912c0b612f6528b10417d66d062b3646f0526552c95af03c0d084a1f6f814256
4
- data.tar.gz: 1932373450158a805b021a178067e1ec36163d64bf0675f90929eb7dd7ba44f7
3
+ metadata.gz: f2bf8402db7e5c099a93c54ecfa9922c669dcd14c8909fda0cec077fd6230aab
4
+ data.tar.gz: e69c603d00b5c50eb31a6fa74381128e504feed24b193e19cd4152d45e86e9cf
5
5
  SHA512:
6
- metadata.gz: 48e7098342c9676b5b7e37f95622925835b4f076b823363433912eadc7312356efc4592275c8120f5794ca525d681e1ab3711b3819f970ee59c6fdf82bddb38c
7
- data.tar.gz: 353e9d9422aab3511da8f2c0492ea1386edc2dfa5cc0de08b4a182cc4cf51cfa789d4a94a91bf497f21f24097a932187e2f320bf6e1b507ffee625b3bfe233a5
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awes_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umar Siddiqui