prima-twig 0.44.3 → 0.44.4
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 +38 -36
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faf43c82057594b6602c649e3a2d4b2f7355a4da85e0db41def92295ba20cbaf
|
|
4
|
+
data.tar.gz: 1d11fd28d1a6f73cd72fff5f50f0e21c4e0df2526d8d3cf7cbdd2133a4916cf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dd481331042729130e107d82dcaf8f95159dce2ccb43bb1dd4d3ad3bf0cbf92103ca028ea2f1e2971afb7393f123098c43bf506574b6482c017d9fddfd32ad3
|
|
7
|
+
data.tar.gz: 9cd26960a1ea67d55ba4fc685934657839c59a99f8c2f696f2b8d64b713bbdec56c56c2ff7da1b2694808cd5aed597b8dd4f6a5986fabf5c1e01a26a314b6d97
|
data/bin/twig-feature
CHANGED
|
@@ -990,13 +990,13 @@ class Release
|
|
|
990
990
|
create_ermes_artifact(@projects["ermes"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
991
991
|
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
|
992
992
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
|
993
|
-
create_fidaty_artifact(@projects["fidaty"][:revision]
|
|
993
|
+
create_fidaty_artifact(@projects["fidaty"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-qa.tar.gz")
|
|
994
994
|
create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
995
995
|
create_rogoreport_artifact(@projects["rogoreport"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
996
996
|
create_assange_artifact(@projects["assange"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-qa.tar.gz")
|
|
997
|
-
create_borat_artifact(@projects["borat"][:revision]
|
|
997
|
+
create_borat_artifact(@projects["borat"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-qa.tar.gz")
|
|
998
998
|
create_activia_artifact(@projects["activia"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-qa.tar.gz")
|
|
999
|
-
create_skynet_artifact(@projects["skynet"][:revision]
|
|
999
|
+
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
|
1000
1000
|
|
|
1001
1001
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db)
|
|
1002
1002
|
import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-route53-qa-#{deploy_id}")
|
|
@@ -1265,7 +1265,7 @@ class Release
|
|
|
1265
1265
|
},
|
|
1266
1266
|
{
|
|
1267
1267
|
parameter_key: "ReleaseVersion",
|
|
1268
|
-
parameter_value: "#{@projects["fidaty"][:revision]}
|
|
1268
|
+
parameter_value: "#{@projects["fidaty"][:revision]}"
|
|
1269
1269
|
},
|
|
1270
1270
|
{
|
|
1271
1271
|
parameter_key: "ECSClusterName",
|
|
@@ -1282,6 +1282,10 @@ class Release
|
|
|
1282
1282
|
{
|
|
1283
1283
|
parameter_key: "HostnamePatternPriority",
|
|
1284
1284
|
parameter_value: hostname_pattern_priority
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
parameter_key: "PeanoHost",
|
|
1288
|
+
parameter_value: get_route53_hostname("ecs-task-peano-qa-notneeded")
|
|
1285
1289
|
}
|
|
1286
1290
|
]
|
|
1287
1291
|
if stack_exists?(stack_name_fidaty)
|
|
@@ -1417,7 +1421,7 @@ class Release
|
|
|
1417
1421
|
},
|
|
1418
1422
|
{
|
|
1419
1423
|
parameter_key: "ReleaseVersion",
|
|
1420
|
-
parameter_value: "#{@projects["borat"][:revision]}
|
|
1424
|
+
parameter_value: "#{@projects["borat"][:revision]}"
|
|
1421
1425
|
},
|
|
1422
1426
|
{
|
|
1423
1427
|
parameter_key: "ECSClusterName",
|
|
@@ -1442,6 +1446,26 @@ class Release
|
|
|
1442
1446
|
{
|
|
1443
1447
|
parameter_key: "EnvHash",
|
|
1444
1448
|
parameter_value: deploy_id
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
parameter_key: "WebHost",
|
|
1452
|
+
parameter_value: get_route53_hostname('ecs-task-web-qa-notneeded')
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
parameter_key: "AssangeHost",
|
|
1456
|
+
parameter_value: get_route53_hostname('ecs-task-assange-qa-notneeded')
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
parameter_key: "PeanoHost",
|
|
1460
|
+
parameter_value: get_route53_hostname('ecs-task-peano-qa-notneeded')
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
parameter_key: "BoratHost",
|
|
1464
|
+
parameter_value: get_route53_hostname('ecs-task-borat-qa-notneeded')
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
parameter_key: "JammerHost",
|
|
1468
|
+
parameter_value: get_route53_hostname('ecs-task-jammer-qa-notneeded')
|
|
1445
1469
|
}
|
|
1446
1470
|
]
|
|
1447
1471
|
if stack_exists?(stack_name_borat)
|
|
@@ -2179,19 +2203,13 @@ class Release
|
|
|
2179
2203
|
Dir.chdir '../../'
|
|
2180
2204
|
end
|
|
2181
2205
|
|
|
2182
|
-
def create_fidaty_artifact(revision
|
|
2206
|
+
def create_fidaty_artifact(revision)
|
|
2183
2207
|
output "Preparo l'artifact fidaty .zip\n".yellow
|
|
2184
2208
|
|
|
2185
2209
|
git_checkout_version('fidaty', revision)
|
|
2186
2210
|
|
|
2187
2211
|
Dir.chdir 'projects/fidaty'
|
|
2188
2212
|
|
|
2189
|
-
stack_name_web = "ecs-task-web-qa-notneeded"
|
|
2190
|
-
web_qa_host = get_route53_hostname(stack_name_web)
|
|
2191
|
-
|
|
2192
|
-
stack_name_peano = "ecs-task-peano-qa-notneeded"
|
|
2193
|
-
peano_qa_host = "#{get_route53_hostname(stack_name_peano)}:10039"
|
|
2194
|
-
|
|
2195
2213
|
decrypt_secrets()
|
|
2196
2214
|
|
|
2197
2215
|
if @qainit
|
|
@@ -2200,9 +2218,7 @@ class Release
|
|
|
2200
2218
|
[
|
|
2201
2219
|
"docker-compose build web",
|
|
2202
2220
|
"docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
|
|
2203
|
-
'-c' '
|
|
2204
|
-
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
2205
|
-
mix local.hex --force && mix hex.info && \
|
|
2221
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2206
2222
|
mix deps.get && mix compile && mix deps.compile && \
|
|
2207
2223
|
mix phx.digest && \
|
|
2208
2224
|
rm -rf _build/qa/rel/ && \
|
|
@@ -2216,9 +2232,7 @@ class Release
|
|
|
2216
2232
|
[
|
|
2217
2233
|
"docker-compose build web",
|
|
2218
2234
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
|
|
2219
|
-
'-c' '
|
|
2220
|
-
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
2221
|
-
mix local.hex --force && mix hex.info && \
|
|
2235
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2222
2236
|
mix deps.get && mix compile && mix deps.compile && \
|
|
2223
2237
|
mix phx.digest && \
|
|
2224
2238
|
rm -rf _build/qa/rel/ && \
|
|
@@ -2229,7 +2243,7 @@ class Release
|
|
|
2229
2243
|
end
|
|
2230
2244
|
|
|
2231
2245
|
artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
|
2232
|
-
upload_artifact(artifact_path, "microservices/fidaty/#{revision}
|
|
2246
|
+
upload_artifact(artifact_path, "microservices/fidaty/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
|
2233
2247
|
|
|
2234
2248
|
Dir.chdir '../../'
|
|
2235
2249
|
end
|
|
@@ -2485,7 +2499,7 @@ class Release
|
|
|
2485
2499
|
Dir.chdir '../../'
|
|
2486
2500
|
end
|
|
2487
2501
|
|
|
2488
|
-
def create_borat_artifact(revision
|
|
2502
|
+
def create_borat_artifact(revision)
|
|
2489
2503
|
output "Preparo l'artifact borat .zip\n".yellow
|
|
2490
2504
|
|
|
2491
2505
|
git_checkout_version('borat', revision)
|
|
@@ -2502,10 +2516,6 @@ class Release
|
|
|
2502
2516
|
|
|
2503
2517
|
stack_name_web = "ecs-task-web-qa-notneeded"
|
|
2504
2518
|
web_qa_host = get_route53_hostname(stack_name_web)
|
|
2505
|
-
stack_name_assange = "ecs-task-assange-qa-notneeded"
|
|
2506
|
-
assange_qa_host = get_route53_hostname(stack_name_assange)
|
|
2507
|
-
stack_name_peano = "ecs-task-peano-qa-notneeded"
|
|
2508
|
-
peano_qa_host = "#{get_route53_hostname(stack_name_peano)}:10039"
|
|
2509
2519
|
stack_name_borat = "ecs-task-borat-qa-notneeded"
|
|
2510
2520
|
borat_qa_host = get_route53_hostname(stack_name_borat)
|
|
2511
2521
|
|
|
@@ -2525,11 +2535,7 @@ class Release
|
|
|
2525
2535
|
"docker network create borat_network || true",
|
|
2526
2536
|
"docker-compose build #{docker_container}",
|
|
2527
2537
|
"docker-compose run -w $PWD -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e GRAPHQL_ENDPOINT=#{graphiql_endpoint} -e AUTH_ENDPOINT=#{auth_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh #{docker_container} \
|
|
2528
|
-
'-c' '
|
|
2529
|
-
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
2530
|
-
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
2531
|
-
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
|
2532
|
-
mix local.hex --force && mix hex.info && \
|
|
2538
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2533
2539
|
mix deps.get && \
|
|
2534
2540
|
cd assets && \
|
|
2535
2541
|
yarn --cache-folder ~/.cache/yarn && \
|
|
@@ -2550,11 +2556,7 @@ class Release
|
|
|
2550
2556
|
"docker network create borat_network || true",
|
|
2551
2557
|
"docker-compose build #{docker_container}",
|
|
2552
2558
|
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e GRAPHQL_ENDPOINT=#{graphiql_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_#{docker_container} \
|
|
2553
|
-
'-c' '
|
|
2554
|
-
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
2555
|
-
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
2556
|
-
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
|
2557
|
-
mix local.hex --force && mix hex.info && \
|
|
2559
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2558
2560
|
mix deps.get && \
|
|
2559
2561
|
cd assets && \
|
|
2560
2562
|
yarn --cache-folder ~/.cache/yarn && \
|
|
@@ -2575,12 +2577,12 @@ class Release
|
|
|
2575
2577
|
else
|
|
2576
2578
|
artifact_path = Dir.glob("_build/qa/rel/#{app_name}/releases/*/#{app_name}.tar.gz").first
|
|
2577
2579
|
end
|
|
2578
|
-
upload_artifact(artifact_path, "microservices/borat/#{revision}
|
|
2580
|
+
upload_artifact(artifact_path, "microservices/borat/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
|
2579
2581
|
|
|
2580
2582
|
Dir.chdir '../../'
|
|
2581
2583
|
end
|
|
2582
2584
|
|
|
2583
|
-
def create_skynet_artifact(revision
|
|
2585
|
+
def create_skynet_artifact(revision)
|
|
2584
2586
|
output "Preparo l'artifact skynet\n".yellow
|
|
2585
2587
|
|
|
2586
2588
|
git_checkout_version('skynet', revision)
|
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.44.
|
|
4
|
+
version: 0.44.4
|
|
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: 2019-01-
|
|
16
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: aws-sdk
|