prima-twig 0.31.50 → 0.31.51
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/bin/twig-feature +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5033f49ba7632a81116be4b49929c1ed74778786
|
4
|
+
data.tar.gz: 44373c6747c5d896ed23dbba3687537913aac73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd6b62cb20d5e5a1bf4faa8533fab08edf536a1da6e989489adc9ff5df9f15ba87a8b12778d39a250ce14ed59dd49e393196ab88453c6e62af7b863023a87a73
|
7
|
+
data.tar.gz: d237154f65dfccebede4984288cb7166bb621ce9f84e537d2805d7a57a3942242b61fa22eda9f33298a230119fdb2c3ee9ad7dbc016e596cad2602df1198c637
|
data/bin/twig-feature
CHANGED
@@ -8,6 +8,7 @@ require 'json'
|
|
8
8
|
require 'launchy'
|
9
9
|
require 'pp'
|
10
10
|
require 'redis'
|
11
|
+
require 'pry'
|
11
12
|
|
12
13
|
class Release
|
13
14
|
include Command
|
@@ -476,14 +477,14 @@ class Release
|
|
476
477
|
create_crash_artifact(@projects['crash'][:revision], deploy_id) unless !deploy_crash? || artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['crash'][:revision]}-#{deploy_id}-qa.tar.gz")
|
477
478
|
create_urania_artifact(@projects["urania"][:revision]) unless artifact_exists?('prima-artifacts', "microservices/urania/#{@projects["urania"][:revision]}-qa.tar.gz")
|
478
479
|
create_ermes_artifact(@projects["ermes"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "microservices/ermes/#{@projects["ermes"][:revision]}-#{deploy_id}-qa.tar.gz")
|
479
|
-
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
480
|
+
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
480
481
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
481
482
|
create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
|
482
483
|
create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
|
483
484
|
create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
|
484
485
|
create_rogoreport_artifact(@projects["rogoreport"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-#{deploy_id}-qa.tar.gz")
|
485
486
|
create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
|
486
|
-
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
|
487
|
+
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
|
487
488
|
|
488
489
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db)
|
489
490
|
import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-task-web-qa-#{deploy_id}")
|
@@ -1374,6 +1375,8 @@ class Release
|
|
1374
1375
|
|
1375
1376
|
Dir.chdir 'projects/bburago'
|
1376
1377
|
|
1378
|
+
decrypt_secrets()
|
1379
|
+
|
1377
1380
|
[
|
1378
1381
|
"docker-compose build web",
|
1379
1382
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
|
@@ -1386,7 +1389,7 @@ class Release
|
|
1386
1389
|
end
|
1387
1390
|
|
1388
1391
|
artifact_path = Dir.glob("_build/qa/rel/bburago/releases/*/bburago.tar.gz").first
|
1389
|
-
upload_artifact(artifact_path, "microservices/bburago/#{revision}-qa.tar.gz")
|
1392
|
+
upload_artifact(artifact_path, "microservices/bburago/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1390
1393
|
|
1391
1394
|
Dir.chdir '../../'
|
1392
1395
|
end
|
@@ -1571,6 +1574,8 @@ class Release
|
|
1571
1574
|
|
1572
1575
|
stop_unless is_branch_compatible_with_current_twig_version?("borat"), "Il tuo branch del progetto borat non e' compatibile con questa versione di twig, devi REBASARE DA MASTER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!".red
|
1573
1576
|
|
1577
|
+
decrypt_secrets()
|
1578
|
+
|
1574
1579
|
[
|
1575
1580
|
"docker-compose build backend",
|
1576
1581
|
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
|
@@ -1595,7 +1600,7 @@ class Release
|
|
1595
1600
|
end
|
1596
1601
|
|
1597
1602
|
artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
1598
|
-
upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz")
|
1603
|
+
upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1599
1604
|
|
1600
1605
|
Dir.chdir '../../'
|
1601
1606
|
end
|
@@ -1811,9 +1816,9 @@ class Release
|
|
1811
1816
|
branch_name = %x[ git for-each-ref --sort=-committerdate refs/remotes/ --format='%(refname) %(objectname) %(committeremail)' | sed 's/refs\\/remotes\\/origin\\///g' ]
|
1812
1817
|
.split("\n").delete_if { |b| !b.include?(branch_name) }[0..49]
|
1813
1818
|
.first
|
1819
|
+
binding.pry
|
1814
1820
|
|
1815
1821
|
Dir.chdir "../../"
|
1816
|
-
|
1817
1822
|
name = branch_name.split(' ')[0]
|
1818
1823
|
revision = branch_name.split(' ')[1]
|
1819
1824
|
committer_email = branch_name.split(' ')[2].tr('<>', '')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prima-twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.31.
|
4
|
+
version: 0.31.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2018-02-
|
16
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: aws-sdk
|