prima-twig 0.53.51 → 0.53.52

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 +41 -29
  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: d8b5f832052d40f2942286b9856aa8bc1923cf7c8bf4023e6b705a6dbd92fa22
4
- data.tar.gz: b9f2b52e718836ebd10fbcc05360654a63639c0583632dcb1aaacd58ea2d38be
3
+ metadata.gz: 6cd8b554d39a3e8f6340af1bebfc11a5ff940d6540a6dcac9c5e5a6454d6e4d4
4
+ data.tar.gz: e205ada8c95ccda3a902ebd5c04c35e2ccfbea1dbb40cfa7b5927db4c6dfb6f6
5
5
  SHA512:
6
- metadata.gz: d85931459b114b0830804c5f5eacfdf2fb71cbebdbeb9d08c50b24ad435c44b7f92eb32016b0efac53cb63683233259ff8a9328a41178502629099f1c1c0f954
7
- data.tar.gz: 861a8a32a4d28801f0d7c886c5fe7a2edc351dbda1db04b0fd1fc10344e18fd3241a8a928e5759a6ac61e137b4d27569a764a811600e338fa0a385bba8003975
6
+ metadata.gz: fb9e5b856612e022a96d9fd0aa353a0f1bb198f65d1546426adcb3112c9f100765132f057d214031f536cdc631ad48d246f73bd9aecd168346660e08adb34ff2
7
+ data.tar.gz: 9a9569f85cbbc23e2ea519cc3f29bcfd33e436c8b7772fdc8730ea10a5c67b57281c5308f40cd102254f9720feaa787ea7040b4a351f5c255f9e82a741fd79f9
@@ -471,7 +471,7 @@ class Release
471
471
  end
472
472
 
473
473
  def qainit_deploy!(quiet = false)
474
- `git checkout master && git pull && git remote prune origin`
474
+ `git checkout master && git pull && git submodule update --init --recursive && git remote prune origin`
475
475
 
476
476
  default_name = get_default_branch_name @projects
477
477
  feature_number = ''
@@ -864,7 +864,7 @@ class Release
864
864
  },
865
865
  {
866
866
  parameter_key: "HostnamePattern",
867
- parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
867
+ parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
868
868
  }
869
869
  ]
870
870
  if stack_exists?(stack_name_web)
@@ -1791,7 +1791,7 @@ class Release
1791
1791
  },
1792
1792
  {
1793
1793
  parameter_key: "HostnamePattern",
1794
- parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
1794
+ parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
1795
1795
  }
1796
1796
  ]
1797
1797
  if stack_exists?(stack_name_web)
@@ -2328,23 +2328,28 @@ class Release
2328
2328
 
2329
2329
  `mv docker-compose-ci.yml docker-compose.yml`
2330
2330
  exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
2331
- [
2332
- 'docker-compose build web',
2333
- "docker-compose run -w $PWD -u root -e MIX_ENV=qa -e ENV_HASH=#{deploy_id} web \
2334
- '-c' 'mix local.hex --force && mix hex.info && \
2335
- mix deps.get && \
2336
- cd assets && \
2337
- yarn --cache-folder ~/.cache/yarn && \
2338
- NODE_ENV=production sysconfcpus -n 1 yarn run build && \
2339
- cd ../ && \
2340
- mix release.clean --implode --no-confirm && \
2341
- mix phx.digest && \
2342
- mix deps.clean --all && \
2343
- mix deps.get && \
2344
- mix compile && mix release --env=qa'",
2345
- 'docker-compose down'
2346
- ].each do |cmd|
2347
- execute_command cmd
2331
+
2332
+ if File.exists? 'deploy/build_qa_artifact'
2333
+ `deploy/build_qa_artifact #{deploy_id}`
2334
+ else # TODO remove when deploy/build_qa_artifact is merged
2335
+ [
2336
+ 'docker-compose build web',
2337
+ "docker-compose run -w $PWD -u root -e MIX_ENV=qa -e ENV_HASH=#{deploy_id} web \
2338
+ '-c' 'mix local.hex --force && mix hex.info && \
2339
+ mix deps.get && \
2340
+ cd assets && \
2341
+ yarn --cache-folder ~/.cache/yarn && \
2342
+ NODE_ENV=production sysconfcpus -n 1 yarn run build && \
2343
+ cd ../ && \
2344
+ mix release.clean --implode --no-confirm && \
2345
+ mix phx.digest && \
2346
+ mix deps.clean --all && \
2347
+ mix deps.get && \
2348
+ mix compile && mix release --env=qa'",
2349
+ 'docker-compose down'
2350
+ ].each do |cmd|
2351
+ execute_command cmd
2352
+ end
2348
2353
  end
2349
2354
 
2350
2355
  cleanup_containers
@@ -2383,6 +2388,7 @@ class Release
2383
2388
  MIX_ENV=dev mix compile.sms && \
2384
2389
  MIX_ENV=dev mix compile.html && \
2385
2390
  MIX_ENV=dev mix compile.heml && \
2391
+ MIX_ENV=dev mix compile.app_notification && \
2386
2392
  rm -rf _build/qa/rel/ && \
2387
2393
  mix release --env=qa'"
2388
2394
  ].each do |cmd|
@@ -2470,6 +2476,7 @@ class Release
2470
2476
 
2471
2477
  decrypt_secrets() unless File.exist?('config/secrets.yml')
2472
2478
 
2479
+ exec_step 'git submodule update'
2473
2480
  exec_step 'cp docker-compose-ci.yml docker-compose.yml'
2474
2481
  exec_step 'prepare-docker-compose --directory hutch && cp docker-compose-qainit.yml docker-compose.yml'
2475
2482
  exec_step "sed s/qa_deploy_id/#{get_deploy_id}/ .env.dist.qa"
@@ -2534,15 +2541,20 @@ class Release
2534
2541
 
2535
2542
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2536
2543
  exec_step 'prepare-docker-compose --directory peano && cp docker-compose-qainit.yml docker-compose.yml'
2537
- [
2538
- "docker-compose build web",
2539
- "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2540
- '-c' 'mix local.hex --force && mix hex.info && \
2541
- mix deps.get && mix compile && mix deps.compile && \
2542
- rm -rf _build/qa/rel/ && \
2543
- mix release --env=qa'"
2544
- ].each do |cmd|
2545
- execute_command cmd
2544
+
2545
+ if File.exists? 'deploy/build_qa_artifact'
2546
+ `deploy/build_qa_artifact`
2547
+ else # TODO remove when deploy/build_qa_artifact is merged
2548
+ [
2549
+ "docker-compose build web",
2550
+ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2551
+ '-c' 'mix local.hex --force && mix hex.info && \
2552
+ mix deps.get && mix compile && mix deps.compile && \
2553
+ rm -rf _build/qa/rel/ && \
2554
+ mix release --env=qa'"
2555
+ ].each do |cmd|
2556
+ execute_command cmd
2557
+ end
2546
2558
  end
2547
2559
 
2548
2560
  cleanup_containers
@@ -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` -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` -var drone_key=\"`biscuit get -f ../configs/secrets/common.yml drone_license_key`\" -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.51
4
+ version: 0.53.52
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-04 00:00:00.000000000 Z
17
+ date: 2019-11-15 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