prima-twig 0.53.54 → 0.54.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +45 -181
  3. data/bin/twig-update-ami +1 -1
  4. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27b894019b11979ad1b9331a53550d10686bcdee7fa995d5e736eeff2e27be1d
4
- data.tar.gz: a8315fd4c39f178b45316a2a7b260a8f40e911cff333169ac48aed1b591d00d2
3
+ metadata.gz: 61807be7809c528567d30d500107fdbeb05a322bbc808b8d77b1a95d9cc12c12
4
+ data.tar.gz: 5b6eb7942aa9dbf7e871ba9dd6d3f129f582175a69239427b19a0854a6da10dd
5
5
  SHA512:
6
- metadata.gz: 5570d5fa710be5e757733535ba8152af03c8ea8bdfd552197722f49da3a34cf67cdf5406b13108fc1a201e8ce8a651cf67df027d54e03e51ed3de7a777135ec0
7
- data.tar.gz: 3c8ecbf268e77d21429e52145bbea9e56dc28add489278587ff877bc47781c32a5b1e92f76b9c94daf7b1781bbde904a0c59700d97e317ed6d99ab25c8eee882
6
+ metadata.gz: 36cdb80b9d23d59c882967e8c1fe41effadb7ae9ade1a609754294f6032e8c20a00119cacde152d99b516ebee07c0150936380cf14955deb8ca7371053a210aa
7
+ data.tar.gz: 4894bf1d737275cd45a094b528f01817a5aa20f83747acd2f1510c1ded4fa4747f4a831b376faa5a6403755fc25cacbc0c4a815091c92ca38f26c789023ad363
@@ -31,7 +31,7 @@ class Release
31
31
  @s3 = Aws::S3::Client.new
32
32
  @s3_bucket = 'prima-artifacts'
33
33
  @artifact_path = '/tmp/prima-artifact.zip'
34
- @import_db_task = 'arn:aws:ecs:eu-west-1:001575623345:task-definition/ecs-task-db-restore2-TaskDefinitionDbRestore-1BXH13XEVLPP0:1'
34
+ @import_db_task = 'arn:aws:ecs:eu-west-1:001575623345:task-definition/ecs-task-db-restore2-TaskDefinitionDbRestore-1ELQ2B0YCR1U:1'
35
35
  @cf_role = 'arn:aws:iam::001575623345:role/qainit-service-role-cloudformat-CloudformationRole-18KBZQIS148R9'
36
36
  @dns_record_identifier = nil
37
37
  @ecs_cluster_name = nil
@@ -57,8 +57,7 @@ class Release
57
57
  'rachele' => {},
58
58
  'leftorium' => {},
59
59
  'pyxis-npm' => {},
60
- 'starsky' => {},
61
- 'hutch' => {}
60
+ 'starsky' => {}
62
61
  }
63
62
  @base_stack_name_alb = 'ecs-alb-http-public-qa-'
64
63
  @base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
@@ -72,7 +71,7 @@ class Release
72
71
  when 'finish'
73
72
  finish_feature!
74
73
  when 'qainit'
75
- abort('Non sei nella cartella di qainit') unless Dir.pwd.match 'qainit$' or Dir.pwd.match '/drone/src'
74
+ abort('Non sei nella cartella di qainit') unless Dir.pwd.match 'qainit$'
76
75
  if ['terminate', 'stop', 'shutdown', 'halt', 'destroy'].include? args[1]
77
76
  qainit_deploy_shutdown!
78
77
  elsif 'update' == args[1]
@@ -471,7 +470,7 @@ class Release
471
470
  end
472
471
 
473
472
  def qainit_deploy!(quiet = false)
474
- `git checkout master && git pull && git submodule update --init --recursive && git remote prune origin`
473
+ `git checkout master && git pull && git remote prune origin`
475
474
 
476
475
  default_name = get_default_branch_name @projects
477
476
  feature_number = ''
@@ -664,8 +663,9 @@ class Release
664
663
  end
665
664
 
666
665
  def qainit_write_output(file_message, output_message)
667
- `mkdir -p /etc/qainit-output`
668
- qa_file_name = "/etc/qainit-output/url_qa"
666
+ `mkdir -p /drone/src/github.com/project/primait/qainit/#{ENV["DRONE_BRANCH"]}`
667
+ qa_file_name = "/drone/src/github.com/project/primait/qainit/#{ENV["DRONE_BRANCH"]}/output"
668
+ File.open(qa_file_name, 'w') { |file| file.write(file_message) }
669
669
  File.open(qa_file_name + '.txt', 'w') { |file| file.write(file_message) }
670
670
  output "#{output_message} #{qa_file_name}".green
671
671
  end
@@ -852,14 +852,6 @@ class Release
852
852
  {
853
853
  parameter_key: "WebHostname",
854
854
  parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
855
- },
856
- {
857
- parameter_key: "FePrimaDomain",
858
- parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
859
- },
860
- {
861
- parameter_key: "HostnamePattern",
862
- parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
863
855
  }
864
856
  ]
865
857
  if stack_exists?(stack_name_web)
@@ -980,7 +972,6 @@ class Release
980
972
  create_leftorium_artifact(@projects["leftorium"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/leftorium/#{@projects["leftorium"][:revision]}-qa.tar.gz")
981
973
  create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
982
974
  create_starsky_artifact(@projects["starsky"][:revision]) unless !deploy_starsky_hutch? || artifact_exists?('prima-artifacts-encrypted', "microservices/starsky/#{@projects["starsky"][:revision]}-qa.tar.gz")
983
- create_hutch_artifact(@projects["hutch"][:revision]) unless !deploy_starsky_hutch? || artifact_exists?('prima-artifacts-encrypted', "microservices/hutch/#{@projects["hutch"][:revision]}-qa.tar.gz")
984
975
 
985
976
  wait_for_db_import(db_task) unless stack_exists?("ecs-route53-qa-#{deploy_id}") # dovrebbe essere istantaneo
986
977
 
@@ -1063,10 +1054,6 @@ class Release
1063
1054
  {
1064
1055
  parameter_key: 'StarskyElbHostname',
1065
1056
  parameter_value: get_alb_host(stack_name_alb)
1066
- },
1067
- {
1068
- parameter_key: 'HutchElbHostname',
1069
- parameter_value: get_alb_host(stack_name_alb)
1070
1057
  }
1071
1058
  ]
1072
1059
 
@@ -1774,14 +1761,6 @@ class Release
1774
1761
  {
1775
1762
  parameter_key: "WebHostname",
1776
1763
  parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1777
- },
1778
- {
1779
- parameter_key: "FePrimaDomain",
1780
- parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1781
- },
1782
- {
1783
- parameter_key: "HostnamePattern",
1784
- parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1785
1764
  }
1786
1765
  ]
1787
1766
  if stack_exists?(stack_name_web)
@@ -1822,14 +1801,6 @@ class Release
1822
1801
  {
1823
1802
  parameter_key: "WebHostname",
1824
1803
  parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1825
- },
1826
- {
1827
- parameter_key: "FePrimaDomain",
1828
- parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1829
- },
1830
- {
1831
- parameter_key: "HostnamePattern",
1832
- parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
1833
1804
  }
1834
1805
  ]
1835
1806
  if stack_exists?(stack_name_consumer)
@@ -1875,55 +1846,6 @@ class Release
1875
1846
  create_stack(stack_name_roger, stack_body, parameters, tags, @cf_role)
1876
1847
  end
1877
1848
 
1878
-
1879
- if deploy_starsky_hutch?
1880
- wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !deploy_starsky_hutch?
1881
-
1882
- stack_name_hutch = "ecs-task-hutch-qa-#{deploy_id}"
1883
- git_checkout_version('hutch', @projects["hutch"][:revision])
1884
- stack_body = File.read('projects/hutch/deploy/task.yml')
1885
- parameters = [
1886
- {
1887
- parameter_key: "Environment",
1888
- parameter_value: "qa"
1889
- },
1890
- {
1891
- parameter_key: "ReleaseVersion",
1892
- parameter_value: "#{@projects["hutch"][:revision]}"
1893
- },
1894
- {
1895
- parameter_key: "ALBShortName",
1896
- parameter_value: "hutch-qa-#{deploy_id}"[0..27]
1897
- },
1898
- {
1899
- parameter_key: "ECSClusterName",
1900
- parameter_value: @ecs_cluster_name
1901
- },
1902
- {
1903
- parameter_key: "EnvHash",
1904
- parameter_value: deploy_id
1905
- },
1906
- {
1907
- parameter_key: "HostnamePattern",
1908
- parameter_value: "hutch-#{@dns_record_identifier}.qa.colaster.com"
1909
- },
1910
- {
1911
- parameter_key: "HostnamePatternPriority",
1912
- parameter_value: (hostname_pattern_priority.to_i + 254).to_s
1913
- },
1914
- {
1915
- parameter_key: "StarskyUrl",
1916
- parameter_value: "https://#{get_route53_hostname('ecs-task-starsky-qa-notneeded')}"
1917
- }
1918
- ]
1919
- if stack_exists?(stack_name_hutch)
1920
- cur_version = get_currently_deployed_version(stack_name_hutch)
1921
- update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"][:revision])
1922
- else
1923
- create_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role)
1924
- end
1925
- end
1926
-
1927
1849
  wait_for_stack_ready(stack_name_web) unless stack_ready?(stack_name_web)
1928
1850
  wait_for_stack_ready(stack_name_consumer) unless stack_ready?(stack_name_consumer)
1929
1851
  wait_for_stack_ready(stack_name_ermes) unless stack_ready?(stack_name_ermes)
@@ -1933,7 +1855,7 @@ class Release
1933
1855
  wait_for_stack_ready(stack_name_borat) unless stack_ready?(stack_name_borat)
1934
1856
  wait_for_stack_ready(stack_name_activia) unless stack_ready?(stack_name_activia)
1935
1857
  wait_for_stack_ready(stack_name_crash) unless stack_ready?(stack_name_crash) unless !deploy_crash?
1936
- wait_for_stack_ready(stack_name_hutch) unless stack_ready?(stack_name_hutch) unless !deploy_starsky_hutch?
1858
+ wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !deploy_starsky_hutch?
1937
1859
 
1938
1860
  update_service_defaults(stack_name_web)
1939
1861
  update_service_defaults(stack_name_consumer)
@@ -1951,7 +1873,6 @@ class Release
1951
1873
  update_service_defaults(stack_name_leftorium)
1952
1874
  update_service_defaults(stack_name_rachele)
1953
1875
  update_service_defaults(stack_name_starsky) unless !deploy_starsky_hutch?
1954
- update_service_defaults(stack_name_hutch) unless !deploy_starsky_hutch?
1955
1876
  update_service_defaults(stack_name_crash) unless !deploy_crash?
1956
1877
 
1957
1878
  activia_hostname = get_route53_hostname(stack_name_activia)
@@ -1970,7 +1891,6 @@ class Release
1970
1891
  rachele_hostname = get_route53_hostname(stack_name_rachele)
1971
1892
  crash_hostname = get_route53_hostname(stack_name_crash) unless !deploy_crash?
1972
1893
  starsky_hostname = get_route53_hostname(stack_name_starsky) unless !deploy_starsky_hutch?
1973
- hutch_hostname = get_route53_hostname(stack_name_hutch) unless !deploy_starsky_hutch?
1974
1894
 
1975
1895
  # launch_marley ec2_ip_address(asg_stack_name), prima_hostname, borat_hostname
1976
1896
 
@@ -1992,8 +1912,7 @@ class Release
1992
1912
  projects_text.concat "
1993
1913
  > Crash url: https://#{crash_hostname}" if deploy_crash?
1994
1914
  projects_text.concat "
1995
- > Starsky url: https://#{starsky_hostname}
1996
- > Hutch url: https://#{hutch_hostname}" if deploy_starsky_hutch?
1915
+ > Starsky url: https://#{starsky_hostname}" if deploy_starsky_hutch?
1997
1916
  projects_text.concat "
1998
1917
  > RabbitMQ url: http://#{ec2_ip_address(asg_stack_name)}:15672
1999
1918
  > Supervisor url: http://#{ec2_ip_address(asg_stack_name)}:9001
@@ -2039,8 +1958,6 @@ class Release
2039
1958
  host = "rachele-#{@dns_record_identifier}.qa.colaster.com"
2040
1959
  when stack_name.include?('starsky')
2041
1960
  host = "starsky-#{@dns_record_identifier}.qa.colaster.com"
2042
- when stack_name.include?('hutch')
2043
- host = "hutch-#{@dns_record_identifier}.qa.colaster.com"
2044
1961
  end
2045
1962
  host
2046
1963
  end
@@ -2097,8 +2014,6 @@ class Release
2097
2014
  logical_resource_id = 'EcsApplicationLoadBalancerInternal'
2098
2015
  when stack_name.include?('starsky')
2099
2016
  logical_resource_id = 'EcsApplicationLoadBalancerPublic'
2100
- when stack_name.include?('hutch')
2101
- logical_resource_id = 'EcsApplicationLoadBalancerPublic'
2102
2017
  end
2103
2018
  resp = @cf.describe_stack_resource({
2104
2019
  stack_name: stack_name,
@@ -2115,7 +2030,7 @@ class Release
2115
2030
  when stack_name.include?('web')
2116
2031
  logical_resource_id = 'ECSServiceWebQA'
2117
2032
  when stack_name.include?('consumer')
2118
- logical_resource_id = 'ECSServiceConsumerQa'
2033
+ logical_resource_id = 'ECSServiceConsumer'
2119
2034
  when stack_name.include?('urania')
2120
2035
  logical_resource_id = 'ECSServiceUraniaQA'
2121
2036
  when stack_name.include?('backoffice')
@@ -2150,8 +2065,6 @@ class Release
2150
2065
  logical_resource_id = 'ECSServiceCrashQA'
2151
2066
  when stack_name.include?('starsky')
2152
2067
  logical_resource_id = 'ECSServiceStarskyQA'
2153
- when stack_name.include?('hutch')
2154
- logical_resource_id = 'ECSServiceHutch'
2155
2068
  else
2156
2069
  raise "Service name non gestito per lo stack #{stack_name}"
2157
2070
  end
@@ -2313,28 +2226,23 @@ class Release
2313
2226
 
2314
2227
  `mv docker-compose-ci.yml docker-compose.yml`
2315
2228
  exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
2316
-
2317
- if File.exists? 'deploy/build_qa_artifact'
2318
- `deploy/build_qa_artifact #{deploy_id}`
2319
- else # TODO remove when deploy/build_qa_artifact is merged
2320
- [
2321
- 'docker-compose build web',
2322
- "docker-compose run -w $PWD -u root -e MIX_ENV=qa -e ENV_HASH=#{deploy_id} web \
2323
- '-c' 'mix local.hex --force && mix hex.info && \
2324
- mix deps.get && \
2325
- cd assets && \
2326
- yarn --cache-folder ~/.cache/yarn && \
2327
- NODE_ENV=production sysconfcpus -n 1 yarn run build && \
2328
- cd ../ && \
2329
- mix release.clean --implode --no-confirm && \
2330
- mix phx.digest && \
2331
- mix deps.clean --all && \
2332
- mix deps.get && \
2333
- mix compile && mix release --env=qa'",
2334
- 'docker-compose down'
2335
- ].each do |cmd|
2336
- execute_command cmd
2337
- end
2229
+ [
2230
+ 'docker-compose build web',
2231
+ "docker-compose run -w $PWD -u root -e MIX_ENV=qa -e ENV_HASH=#{deploy_id} web \
2232
+ '-c' 'mix local.hex --force && mix hex.info && \
2233
+ mix deps.get && \
2234
+ cd assets && \
2235
+ yarn --cache-folder ~/.cache/yarn && \
2236
+ NODE_ENV=production sysconfcpus -n 1 yarn run build && \
2237
+ cd ../ && \
2238
+ mix release.clean --implode --no-confirm && \
2239
+ mix phx.digest && \
2240
+ mix deps.clean --all && \
2241
+ mix deps.get && \
2242
+ mix compile && mix release --env=qa'",
2243
+ 'docker-compose down'
2244
+ ].each do |cmd|
2245
+ execute_command cmd
2338
2246
  end
2339
2247
 
2340
2248
  cleanup_containers
@@ -2373,7 +2281,6 @@ class Release
2373
2281
  MIX_ENV=dev mix compile.sms && \
2374
2282
  MIX_ENV=dev mix compile.html && \
2375
2283
  MIX_ENV=dev mix compile.heml && \
2376
- MIX_ENV=dev mix compile.app_notification && \
2377
2284
  rm -rf _build/qa/rel/ && \
2378
2285
  mix release --env=qa'"
2379
2286
  ].each do |cmd|
@@ -2450,41 +2357,6 @@ class Release
2450
2357
  Dir.chdir '../../'
2451
2358
  end
2452
2359
 
2453
- def create_hutch_artifact(revision)
2454
- output "Preparo l'artifact hutch\n".yellow
2455
-
2456
- git_checkout_version('hutch', revision)
2457
-
2458
- Dir.chdir 'projects/hutch'
2459
-
2460
- version = `git rev-parse HEAD`
2461
-
2462
- decrypt_secrets() unless File.exist?('config/secrets.yml')
2463
-
2464
- exec_step 'git submodule update'
2465
- exec_step 'cp docker-compose-ci.yml docker-compose.yml'
2466
- exec_step 'prepare-docker-compose --directory hutch && cp docker-compose-qainit.yml docker-compose.yml'
2467
- exec_step "sed s/qa_deploy_id/#{get_deploy_id}/ .env.dist.qa"
2468
- exec_step "cp .env.dist.qa .env"
2469
- exec_step "rm -fr peano"
2470
-
2471
- [
2472
- "sed -i 's/USER app/USER root/g' Dockerfile",
2473
- "docker-compose build web",
2474
- "docker-compose run -w $PWD -u root -e ELM_APP_STARSKY_URL=https://#{get_route53_hostname("starsky")} --entrypoint /bin/sh web \
2475
- '-c' 'yarn && yarn run build \
2476
- && tar cfz #{revision}-qa.tar.gz *'"
2477
- ].each do |cmd|
2478
- execute_command cmd
2479
- end
2480
-
2481
- artifact_path = "./#{revision}-qa.tar.gz"
2482
-
2483
- upload_artifact(artifact_path, "microservices/hutch/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2484
-
2485
- Dir.chdir '../../'
2486
- end
2487
-
2488
2360
  def create_leftorium_artifact(revision)
2489
2361
  output "Preparo l'artifact leftorium .zip\n".yellow
2490
2362
 
@@ -2526,20 +2398,15 @@ class Release
2526
2398
 
2527
2399
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2528
2400
  exec_step 'prepare-docker-compose --directory peano && cp docker-compose-qainit.yml docker-compose.yml'
2529
-
2530
- if File.exists? 'deploy/build_qa_artifact'
2531
- `deploy/build_qa_artifact`
2532
- else # TODO remove when deploy/build_qa_artifact is merged
2533
- [
2534
- "docker-compose build web",
2535
- "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2536
- '-c' 'mix local.hex --force && mix hex.info && \
2537
- mix deps.get && mix compile && mix deps.compile && \
2538
- rm -rf _build/qa/rel/ && \
2539
- mix release --env=qa'"
2540
- ].each do |cmd|
2541
- execute_command cmd
2542
- end
2401
+ [
2402
+ "docker-compose build web",
2403
+ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2404
+ '-c' 'mix local.hex --force && mix hex.info && \
2405
+ mix deps.get && mix compile && mix deps.compile && \
2406
+ rm -rf _build/qa/rel/ && \
2407
+ mix release --env=qa'"
2408
+ ].each do |cmd|
2409
+ execute_command cmd
2543
2410
  end
2544
2411
 
2545
2412
  cleanup_containers
@@ -2666,7 +2533,7 @@ class Release
2666
2533
  mix deps.get && mix compile && mix deps.compile && \
2667
2534
  mix phx.digest && \
2668
2535
  rm -rf _build/qa/rel/ && \
2669
- mix distillery.release --env=qa'"
2536
+ mix release --env=qa'"
2670
2537
  ].each do |cmd|
2671
2538
  execute_command cmd
2672
2539
  end
@@ -2740,21 +2607,18 @@ class Release
2740
2607
 
2741
2608
  decrypt_secrets() unless File.exist?('config/secrets.yml')
2742
2609
 
2743
- `mv docker-compose-ci.yml docker-compose.yml`
2610
+ exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2744
2611
  exec_step 'prepare-docker-compose --directory starsky && cp docker-compose-qainit.yml docker-compose.yml'
2745
2612
  exec_step "sed s/qa_deploy_id/#{get_deploy_id}/ .env.dist.qa"
2746
2613
  exec_step "cp .env.dist.qa .env"
2747
2614
 
2748
2615
  [
2749
2616
  "sed -i 's/USER app/USER root/g' Dockerfile",
2750
- "if echo `docker network ls` | grep peano_default; \
2751
- then echo 'peano_default network already existing'; \
2752
- else docker network create peano_default; fi",
2753
2617
  "docker-compose build web",
2754
- "docker-compose run -w $PWD -e BUILD_ENV=qa -u root --entrypoint /bin/sh web \
2755
- '-c' 'cargo build --release -vv --features=qa \
2756
- && cargo build --bin migrate --release --features=qa \
2757
- && cargo build --bin rabbit_worker --release --features=qa \
2618
+ "docker-compose run -w $PWD -u root --entrypoint /bin/sh web \
2619
+ '-c' 'cargo build --release -vv \
2620
+ && cargo build --bin migrate --release \
2621
+ && cargo build --bin rabbit_worker --release \
2758
2622
  && cp -p target/release/starsky . \
2759
2623
  && cp -p target/release/migrate . \
2760
2624
  && cp -p target/release/rabbit_worker . \
@@ -2822,8 +2686,8 @@ class Release
2822
2686
 
2823
2687
  def deploy_starsky_hutch?
2824
2688
  starsky_present = !@projects['starsky'].nil? && !@projects['starsky'].empty? && @projects['starsky'][:name] != 'master' && !@projects['starsky'][:default_branch]
2825
- hutch_present = !@projects['hutch'].nil? && !@projects['hutch'].empty? && @projects['hutch'][:name] != 'master' && !@projects['hutch'][:default_branch]
2826
- starsky_present || hutch_present
2689
+ #hutch_present = !@projects['hutch'].empty? && @projects['hutch'][:name] != 'master' && !@projects['hutch'][:default_branch]
2690
+ starsky_present #|| hutch_present TODO REMOVE
2827
2691
  end
2828
2692
 
2829
2693
  def get_pyxis_version(deploy_id)
@@ -2960,7 +2824,7 @@ class Release
2960
2824
  end
2961
2825
 
2962
2826
  def choose_branch_to_deploy(project_name, select_master = false)
2963
- return {name: 'master', revision: '399653d555b8864', committer: 'crash@prima.it', default_branch: true} if project_name == 'crash' && select_master
2827
+ return {} if project_name == 'crash' && select_master
2964
2828
  Dir.chdir "projects/#{project_name}"
2965
2829
  output "Recupero la lista dei branch del progetto #{project_name}..."
2966
2830
  `git remote prune origin`
@@ -150,7 +150,7 @@ class TwigUpdateAmi
150
150
  end
151
151
 
152
152
  def update_packer(json_filename)
153
- execute_command "packer build -var datadog_apikey=`biscuit get -f ../configs/secrets/common.yml common_production_apikey_datadog` -var github_token=`biscuit get -f ../configs/secrets/common.yml common_private_repo_github_token` -var drone_key=\"`biscuit get -f ../configs/secrets/common.yml drone_license_key`\" -machine-readable ./#{json_filename} | tee build.log"
153
+ execute_command "packer build -var datadog_apikey=`biscuit get -f ../configs/secrets/common.yml common_production_apikey_datadog` -var github_token=`biscuit get -f ../configs/secrets/common.yml common_private_repo_github_token` -machine-readable ./#{json_filename} | tee build.log"
154
154
  `grep 'artifact,0,id' build.log | cut -d, -f6 | cut -d: -f2`.sub(/\n/, '')
155
155
  end
156
156
 
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.53.54
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2019-11-18 00:00:00.000000000 Z
17
+ date: 2019-10-04 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: aws-sdk
@@ -214,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubyforge_project:
218
- rubygems_version: 2.7.8
217
+ rubygems_version: 3.0.1
219
218
  signing_key:
220
219
  specification_version: 4
221
220
  summary: The Prima twig toolbelt