popito 0.0.8.alpha → 0.0.10.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a185e2e1244bfb7347732ad335ee4d6bd06059566fce5e6490cd0ff7d6c7df95
4
- data.tar.gz: ee5bb06f7a6500086a432539ad60a7421202a43a4ed8fbedccd35a83600792f5
3
+ metadata.gz: c2fc1061ac67f009d45122c3b49ef62001422103e5e9796675661d2e424540e3
4
+ data.tar.gz: 102baa381c4eb750a4472bad4cf5e90406f4bff90d5949c0f66dfb47aef4f25b
5
5
  SHA512:
6
- metadata.gz: ed90aafbbaf4aa6cde3e15c5f4cbf1149eb837aef5fc8f7aa49d3002bc9d8b15065ff8a69f68ed01620132a9e5c90b2b1ad09372b6c773e4ea4b17de53b8173f
7
- data.tar.gz: 498eaacee7f0ac93f6c990fc5bd007ffd98cab0f70ac3f178a03e00dc9f6cda94eb7fc38c5510a4810227ca5786094cdf2e4ea6c189e62b15753303e490b1d3b
6
+ metadata.gz: 29e6afc9f90395bc4c8e23d01ad49ce630ba695f83acb4896ff1dfd9694aa2fc546e1a6833560e6dc66e1c893743777720f68cf825e01260021c086d5ae77b2f
7
+ data.tar.gz: e786dc93a51aef3e9880ddd9dbad07038f8402ae44d59fc72fb077983ac218bb6e354520a1a9c2c17fe0e554aad929e28c65072ee3ff2309453b74b794ecb3e2
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  *.gem
10
+ .byebug_history
11
+ _popito
@@ -20,9 +20,11 @@ module Popito
20
20
  def push_deployed_tag
21
21
  yaml_build_config["build"].each do |build|
22
22
  tag = build["tags"].first
23
- puts "Pushing #{build["image"]}:#{tag} to #{build["image"]}:popito-#{config_payload.build_config[:ENVIRONMENT]}"
24
- system "docker image tag #{build["image"]}:#{tag} #{build["image"]}:popito-#{config_payload.build_config[:ENVIRONMENT]}", exception: true
25
- system "docker push #{build["image"]}:popito-#{config_payload.build_config['ENVIRONMENT']}", exception: true
23
+ source = "#{build["image"]}:#{tag}"
24
+ target = "#{build["image"]}:popito-#{config_payload.build_config[:ENVIRONMENT]}"
25
+ puts "Pushing #{source} to #{target}"
26
+ system "docker image tag #{source} #{target}", exception: true
27
+ system "docker push #{target}", exception: true
26
28
  end
27
29
  end
28
30
 
@@ -33,7 +35,7 @@ module Popito
33
35
  end
34
36
 
35
37
  def load_build_yaml
36
- YAML.safe_load(File.read("#{config_payload.build_path}/build.yaml"))
38
+ YAML.safe_load(File.read("#{config_payload.deploy_path}/build.yaml"))
37
39
  end
38
40
  end
39
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Popito
4
- VERSION = "0.0.8.alpha"
4
+ VERSION = "0.0.10.alpha"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.alpha
4
+ version: 0.0.10.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wagner Caixeta