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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +16 -30
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 915f8fa7b041601f22759a2b346191c688f43538c3da0a615e8cdfc226f86cd7
4
- data.tar.gz: e593852479d1b38b52b65e73e4514940298942c17ffaf8b9181c708d9398e9a8
3
+ metadata.gz: bdf57e0f8bb1c4e7b5d6723a32d849329d9d1df8e8f172dcdeaa3f7602d7631d
4
+ data.tar.gz: 325a34ac83f5c1ace703b43c7bb13e4ef81107b3a03ea62fedf2d94777c3dbf2
5
5
  SHA512:
6
- metadata.gz: 1add34d9c58860a06cb6802422dbca39d1bd111508f0dab99c3131ee5029535e4d45087a39aa4fc3585222db512f8b630ce49b23ec0dda534aeefe2a8cf09eb8
7
- data.tar.gz: 3636e033d45db6b61ae7d25f59880d59f67bcfe64c5d4108a0db810a8060cf1e6eece64ee2688e0a3cb03f14ccddd3559ad57b5a83e9cbc32ac6a5e07632960b
6
+ metadata.gz: b349085284954a0c4e93a916c7f238a77fe1e110d17f91fcad015de571ade9950486e0c435a56c9b864e54fd165285e9a2b7c16359c30059bcdcec0dc3f20fcf
7
+ data.tar.gz: f967ab2a07a9ae8c6412f3e65d71dfc9d5d8bfb1b05347cf4d439cb3fa9ddfd82b553233dccfeefedd2659d16543531556fed09b4d66f6c36ce389fbb7cbc4d2
@@ -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' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
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}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
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' 'sed -i \"s/skynet-qa-host/#{skynet_qa_host}/g\" config/qa.exs && \
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
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.5
4
+ version: 0.44.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino