prima-twig 0.45.10 → 0.45.11

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 +5 -5
  2. data/bin/twig-feature +26 -28
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 90beac11f37b84147422f494bafaa448f6a53d8bda7953404d3afa87f1087a5f
4
- data.tar.gz: '08fc4713c4d2a63aaa35de86b4c784d3a515859105f0669aabafa5badf312182'
2
+ SHA1:
3
+ metadata.gz: 5d3296dc9bf035c53000f131e42189a3c5c32232
4
+ data.tar.gz: 39667f908648b02e02d264dbd2ec3e59d9480b6e
5
5
  SHA512:
6
- metadata.gz: 3d1547584d1f6997cc49fcb3f570d5fba6c43725e3345a2ec5d7c6e7fdd6497557620accc21baf7fd34c98beeb41e4bde3bad5a44f559e34cc975a1e2288ebc1
7
- data.tar.gz: db8d75cf0b732d56d1286d41efd2c15cd672f56609df70f1536c97f0c788c1e49f848c75a242b8e29780d0183e64abdf8d4311c19cb6220f1a029ed78b386c24
6
+ metadata.gz: 257e7d51729008eb0d7d6e6f61df1cca5cbd592b45d64e069f40ae59de430113fb40954484985c8b1973214e4a62538aa7d99ed99a759824879db5e21ba66ca9
7
+ data.tar.gz: 26fde59a70e08b8d2f02100cbb75a20125db0cdcc584032b16c192459f39f48225d66014a8c73d1e52eb906988196a62c4ffdfcb4c6a0c88f008eceace9b44f3
@@ -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
@@ -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], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
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
 
@@ -1457,7 +1457,7 @@ class Release
1457
1457
  },
1458
1458
  {
1459
1459
  parameter_key: "ReleaseVersion",
1460
- parameter_value: "#{@projects["borat"][:revision]}-#{deploy_id}"
1460
+ parameter_value: "#{@projects["borat"][:revision]}"
1461
1461
  },
1462
1462
  {
1463
1463
  parameter_key: "ECSClusterName",
@@ -1482,6 +1482,22 @@ 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}.qa.colaster.com/socket/websocket?vsn=1.0.0"
1489
+ },
1490
+ {
1491
+ parameter_key: "GraphqlEndpoint",
1492
+ parameter_value: "https://backoffice-#{@dns_record_identifier}.qa.colaster.com/graphiql"
1493
+ },
1494
+ {
1495
+ parameter_key: "AuthEndpoint",
1496
+ parameter_value: "https://backoffice-#{@dns_record_identifier}.qa.colaster.com/auth"
1497
+ },
1498
+ {
1499
+ parameter_key: "FrontendEndpoint",
1500
+ parameter_value: "https://www-#{@dns_record_identifier}.qa.colaster.com/"
1485
1501
  }
1486
1502
  ]
1487
1503
  if stack_exists?(stack_name_borat)
@@ -2518,23 +2534,13 @@ class Release
2518
2534
  Dir.chdir '../../'
2519
2535
  end
2520
2536
 
2521
- def create_borat_artifact(revision, deploy_id)
2537
+ def create_borat_artifact(revision)
2522
2538
  output "Preparo l'artifact borat .zip\n".yellow
2523
2539
 
2524
2540
  git_checkout_version('borat', revision)
2525
2541
 
2526
2542
  Dir.chdir 'projects/borat'
2527
2543
 
2528
- web_qa_host = "www-#{@dns_record_identifier}.qa.colaster.com"
2529
- assange_qa_host = "assange-#{@dns_record_identifier}.qa.colaster.com"
2530
- peano_qa_host = "peano-#{@dns_record_identifier}.qa.colaster.com"
2531
- borat_qa_host = "backoffice-#{@dns_record_identifier}.qa.colaster.com"
2532
-
2533
- ws_endpoint = "wss://#{borat_qa_host}/socket/websocket?vsn=1.0.0"
2534
- frontend_endpoint = "https://#{web_qa_host}/"
2535
- graphiql_endpoint = "https://#{borat_qa_host}/graphiql"
2536
- auth_endpoint = "https://#{borat_qa_host}/auth"
2537
-
2538
2544
  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
2539
2545
 
2540
2546
  decrypt_secrets()
@@ -2545,12 +2551,8 @@ class Release
2545
2551
  [
2546
2552
  "docker network create borat_network || true",
2547
2553
  "docker-compose build web",
2548
- "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 \
2549
- '-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
2550
- sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
2551
- sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
2552
- sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
2553
- mix local.hex --force && mix hex.info && \
2554
+ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2555
+ '-c' 'mix local.hex --force && mix hex.info && \
2554
2556
  mix deps.get && \
2555
2557
  cd assets && \
2556
2558
  yarn --cache-folder ~/.cache/yarn && \
@@ -2570,12 +2572,8 @@ class Release
2570
2572
  [
2571
2573
  "docker network create borat_network || true",
2572
2574
  "docker-compose build web",
2573
- "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 \
2574
- '-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
2575
- sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
2576
- sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
2577
- sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
2578
- mix local.hex --force && mix hex.info && \
2575
+ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh web \
2576
+ '-c' 'mix local.hex --force && mix hex.info && \
2579
2577
  mix deps.get && \
2580
2578
  cd assets && \
2581
2579
  yarn --cache-folder ~/.cache/yarn && \
@@ -2592,7 +2590,7 @@ class Release
2592
2590
  end
2593
2591
 
2594
2592
  artifact_path = Dir.glob("_build/qa/rel/borat/releases/*/borat.tar.gz").first
2595
- upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2593
+ upload_artifact(artifact_path, "microservices/borat/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2596
2594
 
2597
2595
  Dir.chdir '../../'
2598
2596
  end
@@ -2872,7 +2870,7 @@ class Release
2872
2870
  when project == 'assange'
2873
2871
  File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
2874
2872
  when project == 'borat'
2875
- File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
2873
+ File.readlines("deploy/task.yml").grep(/WsEndpoint/).size > 0
2876
2874
  when project == 'crash'
2877
2875
  File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
2878
2876
  when project == 'ermes'
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.10
4
+ version: 0.45.11
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
- rubygems_version: 3.0.1
216
+ rubyforge_project:
217
+ rubygems_version: 2.5.2.3
217
218
  signing_key:
218
219
  specification_version: 4
219
220
  summary: The Prima twig toolbelt