prima-twig 0.45.06 → 0.45.07

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +21 -31
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db6361a82aae3a54d9119b25e9dffd55e911481810fb0d4708ef8cde85456784
4
- data.tar.gz: 5a7542f8d2e05d72f7bc60880c3c7c04e20d3cf99d7f066066540002f5693211
3
+ metadata.gz: 54cfa7920eba7cc104496200bf0721327d6258eb0d0a1242dfae3c84723e1bb0
4
+ data.tar.gz: a1667d4cefb778319d7b92370563dadfd5dd269ad1e48ba20fa90048663bba3b
5
5
  SHA512:
6
- metadata.gz: 12cba2db8b8d1332dd3ef1c700c6c92e32f4b1c84f1dc4d44ed2ca352b59292db7cabab656c83c7eb84be36d7c4812b1c18c1dd509571e40f41df1fad1ade616
7
- data.tar.gz: bae59034901e73328a52a0adeb2639730e53ff87f10f2969eec10d2ebac5a01cb1b1d94e10cfbcc66762fe76d2eb6bdb0a25099aa5eaa1cd5254770830450f8e
6
+ metadata.gz: 2162841af980d3aabd47fe28493acfb090904ac3d11d09a372521b7dbd8823e7370900cf8062f35eeff20484506396052bbe768f07afacfb934a07b64981a148
7
+ data.tar.gz: ce9b4fe37be3a67e2ea7f693596005e520f0bdb5c7381a99f4bc52b3ec1913701439be4ebd83e32096c80cdd6caf7150d5f2b8060fa03d3901d20058c949be16
@@ -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]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-qa.tar.gz")
1018
+ create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-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
 
@@ -1482,22 +1482,6 @@ class Release
1482
1482
  {
1483
1483
  parameter_key: "EnvHash",
1484
1484
  parameter_value: deploy_id
1485
- },
1486
- {
1487
- parameter_key: "WsEndpoint",
1488
- parameter_value: "wss://backoffice-#{@dns_record_identifier}/socket/websocket?vsn=1.0.0"
1489
- },
1490
- {
1491
- parameter_key: "GraphqlEndpoint",
1492
- parameter_value: "https://backoffice-#{@dns_record_identifier}/graphiql"
1493
- },
1494
- {
1495
- parameter_key: "AuthEndpoint",
1496
- parameter_value: "https://backoffice-#{@dns_record_identifier}/auth"
1497
- },
1498
- {
1499
- parameter_key: "Frontend",
1500
- parameter_value: "https://www-#{@dns_record_identifier}.qa.colaster.com/"
1501
1485
  }
1502
1486
  ]
1503
1487
  if stack_exists?(stack_name_borat)
@@ -2534,12 +2518,18 @@ class Release
2534
2518
  Dir.chdir '../../'
2535
2519
  end
2536
2520
 
2537
- def create_borat_artifact(revision)
2521
+ def create_borat_artifact(revision, deploy_id)
2538
2522
  output "Preparo l'artifact borat .zip\n".yellow
2539
2523
 
2540
2524
  git_checkout_version('borat', revision)
2541
2525
 
2542
2526
  Dir.chdir 'projects/borat'
2527
+
2528
+ ws_endpoint = "wss://backoffice-#{@dns_record_identifier}.qa.colaster.com/socket/websocket?vsn=1.0.0"
2529
+ frontend_endpoint = "https://www-#{@dns_record_identifier}.qa.colaster.com/"
2530
+ graphiql_endpoint = "https://backoffice-#{@dns_record_identifier}.qa.colaster.com/graphiql"
2531
+ auth_endpoint = "https://backoffice-#{@dns_record_identifier}.qa.colaster.com/auth"
2532
+
2543
2533
  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
2544
2534
 
2545
2535
  decrypt_secrets()
@@ -2550,7 +2540,7 @@ class Release
2550
2540
  [
2551
2541
  "docker network create borat_network || true",
2552
2542
  "docker-compose build web",
2553
- "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2543
+ "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 web \
2554
2544
  '-c' 'mix local.hex --force && mix hex.info && \
2555
2545
  mix deps.get && \
2556
2546
  cd assets && \
@@ -2571,7 +2561,7 @@ class Release
2571
2561
  [
2572
2562
  "docker network create borat_network || true",
2573
2563
  "docker-compose build web",
2574
- "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh web \
2564
+ "docker run -v $PWD:/code -w /code -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 web \
2575
2565
  '-c' 'mix local.hex --force && mix hex.info && \
2576
2566
  mix deps.get && \
2577
2567
  cd assets && \
@@ -2589,7 +2579,7 @@ class Release
2589
2579
  end
2590
2580
 
2591
2581
  artifact_path = Dir.glob("_build/qa/rel/borat/releases/*/borat.tar.gz").first
2592
- upload_artifact(artifact_path, "microservices/borat/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2582
+ upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy-id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2593
2583
 
2594
2584
  Dir.chdir '../../'
2595
2585
  end
@@ -2628,16 +2618,16 @@ class Release
2628
2618
  end
2629
2619
  end
2630
2620
 
2631
- backoffice_qa_host = get_route53_hostname("ecs-task-borat-qa-notneeded")
2632
- # backoffice-staging.prima.it
2633
- web_qa_host = get_route53_hostname("ecs-task-web-qa-notneeded")
2634
- # staging.prima.it
2635
- assange_qa_host = get_route53_hostname("ecs-task-assange-qa-notneeded")
2636
- # assange-staging.prima.it
2637
- if minimal
2638
- backoffice_qa_host = 'backoffice-staging.prima.it'
2639
- assange_qa_host = 'assange-staging.prima.it'
2640
- end
2621
+ # backoffice_qa_host = get_route53_hostname("ecs-task-borat-qa-notneeded")
2622
+ # # backoffice-staging.prima.it
2623
+ # web_qa_host = get_route53_hostname("ecs-task-web-qa-notneeded")
2624
+ # # staging.prima.it
2625
+ # assange_qa_host = get_route53_hostname("ecs-task-assange-qa-notneeded")
2626
+ # # assange-staging.prima.it
2627
+ # if minimal
2628
+ # backoffice_qa_host = 'backoffice-staging.prima.it'
2629
+ # assange_qa_host = 'assange-staging.prima.it'
2630
+ # end
2641
2631
 
2642
2632
  if @qainit
2643
2633
  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.06
4
+ version: 0.45.07
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino