prima-twig 0.45.3 → 0.45.04
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-deploy +1 -2
- data/bin/twig-feature +62 -36
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e1813b58f299f2ac4b6ba60a8b45be80a10123248e92305ac055c5417922087
|
|
4
|
+
data.tar.gz: 4b592c1ee16c7c2aaf3d0150eb7b4f3a6ee7aefc97df34987f14c597cd7acce1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 680238e9d6d22a63ed6ec0b34a8414d005abe5700624bbe5310ab298841d7b45363974b1121f4b4e8511df55861e5707dae326be1c5a5a931d237f0ac3bb2753
|
|
7
|
+
data.tar.gz: 5ec7a0ebc08ae73d1b588655de284cdfb31ee2bfd07a8e5c04528c3d585d5eb9275359ffc23f946e52f2e5131865842fbca5a606fc2a88efa3afd6c62b3742b3
|
data/bin/twig-deploy
CHANGED
|
@@ -188,13 +188,12 @@ class Review
|
|
|
188
188
|
artifacts = []
|
|
189
189
|
resp = @s3.list_objects(bucket: @s3_bucket, prefix: 'prima')
|
|
190
190
|
resp.contents.each do |l|
|
|
191
|
-
# aggiungiamo solo gli artefatti prodotti a partire dal branch master, riconosciuti tramite i metadata
|
|
192
191
|
rev = l.key.match(/^prima\/(\w{15}).tar.gz$/).captures.first if l.key.match(/^prima\/(\w{15}).tar.gz$/)
|
|
193
192
|
if rev
|
|
194
193
|
object = @s3.head_object(bucket: @s3_bucket, key: l.key)
|
|
195
194
|
commit_msg = ''
|
|
196
195
|
commit_msg = Base64.decode64(object.metadata['commit_msg']).strip if object.metadata.has_key? 'commit_msg'
|
|
197
|
-
artifacts << {rev: rev, created_at: object.last_modified, branch: object.metadata['branch'], commit_msg: commit_msg } if
|
|
196
|
+
artifacts << {rev: rev, created_at: object.last_modified, branch: object.metadata['branch'], commit_msg: commit_msg } if object.metadata.has_key? 'branch'
|
|
198
197
|
end
|
|
199
198
|
end
|
|
200
199
|
artifacts.sort_by { |v| v[:created_at] }.reverse
|
data/bin/twig-feature
CHANGED
|
@@ -724,7 +724,7 @@ class Release
|
|
|
724
724
|
|
|
725
725
|
case project
|
|
726
726
|
when 'prima'
|
|
727
|
-
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
|
|
727
|
+
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}-#{deploy_id}.tar.gz")
|
|
728
728
|
when 'crash'
|
|
729
729
|
create_crash_artifact(@projects['crash'][:revision], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['crash'][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
730
730
|
end
|
|
@@ -800,19 +800,19 @@ class Release
|
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
parameter_key: "AssangeHostname",
|
|
803
|
-
parameter_value: "assange
|
|
803
|
+
parameter_value: get_route53_hostname("ecs-task-assange-qa-notneeded")
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
806
|
parameter_key: "BackofficeHostname",
|
|
807
|
-
parameter_value: "
|
|
807
|
+
parameter_value: get_route53_hostname("ecs-task-borat-qa-notneeded")
|
|
808
808
|
},
|
|
809
809
|
{
|
|
810
810
|
parameter_key: "WebHostname",
|
|
811
|
-
parameter_value: "
|
|
811
|
+
parameter_value: get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
812
812
|
},
|
|
813
813
|
{
|
|
814
814
|
parameter_key: "WebRiHostname",
|
|
815
|
-
parameter_value: "
|
|
815
|
+
parameter_value: "#{get_route53_hostname("webri")}"
|
|
816
816
|
}
|
|
817
817
|
]
|
|
818
818
|
if stack_exists?(stack_name_web)
|
|
@@ -1015,7 +1015,7 @@ class Release
|
|
|
1015
1015
|
create_peano_artifact(@projects["peano"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-qa.tar.gz")
|
|
1016
1016
|
create_rogoreport_artifact(@projects["rogoreport"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-qa.tar.gz")
|
|
1017
1017
|
create_assange_artifact(@projects["assange"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-qa.tar.gz")
|
|
1018
|
-
create_borat_artifact(@projects["borat"][:revision]
|
|
1018
|
+
create_borat_artifact(@projects["borat"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-qa.tar.gz")
|
|
1019
1019
|
create_activia_artifact(@projects["activia"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-qa.tar.gz")
|
|
1020
1020
|
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
|
1021
1021
|
|
|
@@ -1353,11 +1353,11 @@ class Release
|
|
|
1353
1353
|
},
|
|
1354
1354
|
{
|
|
1355
1355
|
parameter_key: "WebHost",
|
|
1356
|
-
parameter_value: "
|
|
1356
|
+
parameter_value: get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
1357
1357
|
},
|
|
1358
1358
|
{
|
|
1359
1359
|
parameter_key: "AssangeHost",
|
|
1360
|
-
parameter_value: "assange
|
|
1360
|
+
parameter_value: get_route53_hostname("ecs-task-assange-qa-notneeded")
|
|
1361
1361
|
}
|
|
1362
1362
|
]
|
|
1363
1363
|
if stack_exists?(stack_name_peano)
|
|
@@ -1433,11 +1433,11 @@ class Release
|
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
1435
|
parameter_key: "WebHost",
|
|
1436
|
-
parameter_value:
|
|
1436
|
+
parameter_value: get_route53_hostname('ecs-task-web-qa-notneeded')
|
|
1437
1437
|
},
|
|
1438
1438
|
{
|
|
1439
1439
|
parameter_key: "AssangeHost",
|
|
1440
|
-
parameter_value:
|
|
1440
|
+
parameter_value: get_route53_hostname('ecs-task-assange-qa-notneeded')
|
|
1441
1441
|
}
|
|
1442
1442
|
]
|
|
1443
1443
|
if stack_exists?(stack_name_assange)
|
|
@@ -1449,6 +1449,12 @@ class Release
|
|
|
1449
1449
|
|
|
1450
1450
|
stack_name_borat = "ecs-task-borat-qa-#{deploy_id}"
|
|
1451
1451
|
git_checkout_version('borat', @projects["borat"][:revision])
|
|
1452
|
+
web_qa_host = get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
1453
|
+
borat_qa_host = get_route53_hostname("ecs-task-borat-qa-notneeded")
|
|
1454
|
+
ws_endpoint = "wss://#{borat_qa_host}/socket/websocket?vsn=1.0.0"
|
|
1455
|
+
frontend_endpoint = "https://#{web_qa_host}/"
|
|
1456
|
+
graphql_endpoint = "https://#{borat_qa_host}/graphiql"
|
|
1457
|
+
auth_endpoint = "https://#{borat_qa_host}/auth"
|
|
1452
1458
|
stack_body = IO.read('projects/borat/deploy/task.yml')
|
|
1453
1459
|
parameters = [
|
|
1454
1460
|
{
|
|
@@ -1482,6 +1488,22 @@ class Release
|
|
|
1482
1488
|
{
|
|
1483
1489
|
parameter_key: "EnvHash",
|
|
1484
1490
|
parameter_value: deploy_id
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
parameter_key: "WsEndpoint",
|
|
1494
|
+
parameter_value: ws_endpoint
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
parameter_key: "GraphqlEndpoint",
|
|
1498
|
+
parameter_value: graphql_endpoint
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
parameter_key: "AuthEndpoint",
|
|
1502
|
+
parameter_value: auth_endpoint
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
parameter_key: "Frontend",
|
|
1506
|
+
parameter_value: frontend_endpoint
|
|
1485
1507
|
}
|
|
1486
1508
|
]
|
|
1487
1509
|
if stack_exists?(stack_name_borat)
|
|
@@ -1635,19 +1657,19 @@ class Release
|
|
|
1635
1657
|
},
|
|
1636
1658
|
{
|
|
1637
1659
|
parameter_key: "AssangeHostname",
|
|
1638
|
-
parameter_value: "assange
|
|
1660
|
+
parameter_value: get_route53_hostname("ecs-task-assange-qa-notneeded")
|
|
1639
1661
|
},
|
|
1640
1662
|
{
|
|
1641
1663
|
parameter_key: "BackofficeHostname",
|
|
1642
|
-
parameter_value: "
|
|
1664
|
+
parameter_value: get_route53_hostname("ecs-task-borat-qa-notneeded")
|
|
1643
1665
|
},
|
|
1644
1666
|
{
|
|
1645
1667
|
parameter_key: "WebHostname",
|
|
1646
|
-
parameter_value: "
|
|
1668
|
+
parameter_value: get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
1647
1669
|
},
|
|
1648
1670
|
{
|
|
1649
1671
|
parameter_key: "WebRiHostname",
|
|
1650
|
-
parameter_value: "
|
|
1672
|
+
parameter_value: "#{get_route53_hostname("webri")}"
|
|
1651
1673
|
}
|
|
1652
1674
|
]
|
|
1653
1675
|
if stack_exists?(stack_name_web)
|
|
@@ -1679,19 +1701,19 @@ class Release
|
|
|
1679
1701
|
},
|
|
1680
1702
|
{
|
|
1681
1703
|
parameter_key: "AssangeHostname",
|
|
1682
|
-
parameter_value: "assange
|
|
1704
|
+
parameter_value: get_route53_hostname("ecs-task-assange-qa-notneeded")
|
|
1683
1705
|
},
|
|
1684
1706
|
{
|
|
1685
1707
|
parameter_key: "BackofficeHostname",
|
|
1686
|
-
parameter_value: "
|
|
1708
|
+
parameter_value: get_route53_hostname("ecs-task-borat-qa-notneeded")
|
|
1687
1709
|
},
|
|
1688
1710
|
{
|
|
1689
1711
|
parameter_key: "WebHostname",
|
|
1690
|
-
parameter_value: "
|
|
1712
|
+
parameter_value: get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
1691
1713
|
},
|
|
1692
1714
|
{
|
|
1693
1715
|
parameter_key: "WebRiHostname",
|
|
1694
|
-
parameter_value: "
|
|
1716
|
+
parameter_value: "#{get_route53_hostname("webri")}"
|
|
1695
1717
|
}
|
|
1696
1718
|
]
|
|
1697
1719
|
if stack_exists?(stack_name_consumer)
|
|
@@ -2518,17 +2540,21 @@ class Release
|
|
|
2518
2540
|
Dir.chdir '../../'
|
|
2519
2541
|
end
|
|
2520
2542
|
|
|
2521
|
-
def create_borat_artifact(revision
|
|
2543
|
+
def create_borat_artifact(revision)
|
|
2522
2544
|
output "Preparo l'artifact borat .zip\n".yellow
|
|
2523
2545
|
|
|
2524
2546
|
git_checkout_version('borat', revision)
|
|
2525
2547
|
|
|
2526
2548
|
Dir.chdir 'projects/borat'
|
|
2527
2549
|
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2550
|
+
stack_name_web = "ecs-task-web-qa-notneeded"
|
|
2551
|
+
web_qa_host = get_route53_hostname(stack_name_web)
|
|
2552
|
+
stack_name_assange = "ecs-task-assange-qa-notneeded"
|
|
2553
|
+
assange_qa_host = get_route53_hostname(stack_name_assange)
|
|
2554
|
+
stack_name_peano = "ecs-task-peano-qa-notneeded"
|
|
2555
|
+
peano_qa_host = "#{get_route53_hostname(stack_name_peano)}:10039"
|
|
2556
|
+
stack_name_borat = "ecs-task-borat-qa-notneeded"
|
|
2557
|
+
borat_qa_host = get_route53_hostname(stack_name_borat)
|
|
2532
2558
|
|
|
2533
2559
|
ws_endpoint = "wss://#{borat_qa_host}/socket/websocket?vsn=1.0.0"
|
|
2534
2560
|
frontend_endpoint = "https://#{web_qa_host}/"
|
|
@@ -2545,7 +2571,7 @@ class Release
|
|
|
2545
2571
|
[
|
|
2546
2572
|
"docker network create borat_network || true",
|
|
2547
2573
|
"docker-compose build web",
|
|
2548
|
-
"docker-compose run -w $PWD -u root -e
|
|
2574
|
+
"docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
|
|
2549
2575
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
2550
2576
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
2551
2577
|
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
@@ -2570,7 +2596,7 @@ class Release
|
|
|
2570
2596
|
[
|
|
2571
2597
|
"docker network create borat_network || true",
|
|
2572
2598
|
"docker-compose build web",
|
|
2573
|
-
"docker run -v $PWD:/code -w /code -e
|
|
2599
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh web \
|
|
2574
2600
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
2575
2601
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
2576
2602
|
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
@@ -2592,7 +2618,7 @@ class Release
|
|
|
2592
2618
|
end
|
|
2593
2619
|
|
|
2594
2620
|
artifact_path = Dir.glob("_build/qa/rel/borat/releases/*/borat.tar.gz").first
|
|
2595
|
-
upload_artifact(artifact_path, "microservices/borat/#{revision}
|
|
2621
|
+
upload_artifact(artifact_path, "microservices/borat/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
|
2596
2622
|
|
|
2597
2623
|
Dir.chdir '../../'
|
|
2598
2624
|
end
|
|
@@ -2631,16 +2657,16 @@ class Release
|
|
|
2631
2657
|
end
|
|
2632
2658
|
end
|
|
2633
2659
|
|
|
2634
|
-
|
|
2635
|
-
#
|
|
2636
|
-
|
|
2637
|
-
#
|
|
2638
|
-
|
|
2639
|
-
#
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2660
|
+
backoffice_qa_host = get_route53_hostname("ecs-task-borat-qa-notneeded")
|
|
2661
|
+
# backoffice-staging.prima.it
|
|
2662
|
+
web_qa_host = get_route53_hostname("ecs-task-web-qa-notneeded")
|
|
2663
|
+
# staging.prima.it
|
|
2664
|
+
assange_qa_host = get_route53_hostname("ecs-task-assange-qa-notneeded")
|
|
2665
|
+
# assange-staging.prima.it
|
|
2666
|
+
if minimal
|
|
2667
|
+
backoffice_qa_host = 'backoffice-staging.prima.it'
|
|
2668
|
+
assange_qa_host = 'assange-staging.prima.it'
|
|
2669
|
+
end
|
|
2644
2670
|
|
|
2645
2671
|
if @qainit
|
|
2646
2672
|
exec_step 'mv docker-compose-ci.yml docker-compose.yml'
|
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.45.
|
|
4
|
+
version: 0.45.04
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -213,7 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
213
|
- !ruby/object:Gem::Version
|
|
214
214
|
version: '0'
|
|
215
215
|
requirements: []
|
|
216
|
-
|
|
216
|
+
rubyforge_project:
|
|
217
|
+
rubygems_version: 2.7.6
|
|
217
218
|
signing_key:
|
|
218
219
|
specification_version: 4
|
|
219
220
|
summary: The Prima twig toolbelt
|