prima-twig 0.44.5 → 0.44.6
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 +16 -30
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdf57e0f8bb1c4e7b5d6723a32d849329d9d1df8e8f172dcdeaa3f7602d7631d
|
4
|
+
data.tar.gz: 325a34ac83f5c1ace703b43c7bb13e4ef81107b3a03ea62fedf2d94777c3dbf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b349085284954a0c4e93a916c7f238a77fe1e110d17f91fcad015de571ade9950486e0c435a56c9b864e54fd165285e9a2b7c16359c30059bcdcec0dc3f20fcf
|
7
|
+
data.tar.gz: f967ab2a07a9ae8c6412f3e65d71dfc9d5d8bfb1b05347cf4d439cb3fa9ddfd82b553233dccfeefedd2659d16543531556fed09b4d66f6c36ce389fbb7cbc4d2
|
data/bin/twig-feature
CHANGED
@@ -994,7 +994,7 @@ class Release
|
|
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]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-qa.tar.gz")
|
997
|
+
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-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
999
|
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
1000
1000
|
|
@@ -1446,22 +1446,6 @@ class Release
|
|
1446
1446
|
{
|
1447
1447
|
parameter_key: "EnvHash",
|
1448
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
1449
|
}
|
1466
1450
|
]
|
1467
1451
|
if stack_exists?(stack_name_borat)
|
@@ -2081,9 +2065,7 @@ class Release
|
|
2081
2065
|
'mv docker-compose-ci.yml docker-compose.yml',
|
2082
2066
|
'docker-compose build web',
|
2083
2067
|
"docker-compose run -w $PWD -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e ENV_HASH=#{deploy_id} -e MIX_ENV=qa web \
|
2084
|
-
'-c' '
|
2085
|
-
sed -i \"s/crash-qa-host/#{crash_qa_host}/g\" config/qa.exs && \
|
2086
|
-
mix local.hex --force && mix hex.info && \
|
2068
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2087
2069
|
mix deps.get && \
|
2088
2070
|
cd assets && \
|
2089
2071
|
yarn --cache-folder ~/.cache/yarn && \
|
@@ -2102,7 +2084,7 @@ class Release
|
|
2102
2084
|
end
|
2103
2085
|
|
2104
2086
|
artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
|
2105
|
-
upload_artifact(artifact_path, "microservices/crash/#{revision}
|
2087
|
+
upload_artifact(artifact_path, "microservices/crash/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
2106
2088
|
|
2107
2089
|
Dir.chdir '../../'
|
2108
2090
|
end
|
@@ -2159,17 +2141,13 @@ class Release
|
|
2159
2141
|
|
2160
2142
|
decrypt_secrets()
|
2161
2143
|
|
2162
|
-
stack_name_skynet = 'ecs-task-skynet-qa-notneeded'
|
2163
|
-
skynet_qa_host = get_route53_hostname(stack_name_skynet)
|
2164
|
-
|
2165
2144
|
if @qainit
|
2166
2145
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2167
2146
|
exec_step 'prepare-docker-compose --directory hal9000 && cp docker-compose-qainit.yml docker-compose.yml'
|
2168
2147
|
[
|
2169
2148
|
"docker-compose build web",
|
2170
2149
|
"docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
|
2171
|
-
'-c' '
|
2172
|
-
mix local.hex --force && mix hex.info && \
|
2150
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2173
2151
|
mix deps.get && mix compile && mix deps.compile && \
|
2174
2152
|
mix phx.digest assets -o priv/static && \
|
2175
2153
|
rm -rf _build/qa/rel/ && \
|
@@ -2495,7 +2473,7 @@ class Release
|
|
2495
2473
|
Dir.chdir '../../'
|
2496
2474
|
end
|
2497
2475
|
|
2498
|
-
def create_borat_artifact(revision)
|
2476
|
+
def create_borat_artifact(revision, deploy)
|
2499
2477
|
output "Preparo l'artifact borat .zip\n".yellow
|
2500
2478
|
|
2501
2479
|
git_checkout_version('borat', revision)
|
@@ -2531,7 +2509,11 @@ class Release
|
|
2531
2509
|
"docker network create borat_network || true",
|
2532
2510
|
"docker-compose build #{docker_container}",
|
2533
2511
|
"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} \
|
2534
|
-
'-c' 'mix local.hex --force && mix hex.info && \
|
2512
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \ '-c' 'mix local.hex --force && mix hex.info && \
|
2513
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
2514
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2515
|
+
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
2516
|
+
mix local.hex --force && mix hex.info && \
|
2535
2517
|
mix deps.get && \
|
2536
2518
|
cd assets && \
|
2537
2519
|
yarn --cache-folder ~/.cache/yarn && \
|
@@ -2552,7 +2534,11 @@ class Release
|
|
2552
2534
|
"docker network create borat_network || true",
|
2553
2535
|
"docker-compose build #{docker_container}",
|
2554
2536
|
"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} \
|
2555
|
-
'-c' 'mix local.hex --force && mix hex.info && \
|
2537
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \ '-c' 'mix local.hex --force && mix hex.info && \
|
2538
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
2539
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2540
|
+
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
2541
|
+
mix local.hex --force && mix hex.info && \
|
2556
2542
|
mix deps.get && \
|
2557
2543
|
cd assets && \
|
2558
2544
|
yarn --cache-folder ~/.cache/yarn && \
|
@@ -2573,7 +2559,7 @@ class Release
|
|
2573
2559
|
else
|
2574
2560
|
artifact_path = Dir.glob("_build/qa/rel/#{app_name}/releases/*/#{app_name}.tar.gz").first
|
2575
2561
|
end
|
2576
|
-
upload_artifact(artifact_path, "microservices/borat/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
2562
|
+
upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
2577
2563
|
|
2578
2564
|
Dir.chdir '../../'
|
2579
2565
|
end
|