prima-twig 0.53.51 → 0.53.52
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.
- checksums.yaml +4 -4
- data/bin/twig-feature +41 -29
- data/bin/twig-update-ami +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cd8b554d39a3e8f6340af1bebfc11a5ff940d6540a6dcac9c5e5a6454d6e4d4
|
4
|
+
data.tar.gz: e205ada8c95ccda3a902ebd5c04c35e2ccfbea1dbb40cfa7b5927db4c6dfb6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb9e5b856612e022a96d9fd0aa353a0f1bb198f65d1546426adcb3112c9f100765132f057d214031f536cdc631ad48d246f73bd9aecd168346660e08adb34ff2
|
7
|
+
data.tar.gz: 9a9569f85cbbc23e2ea519cc3f29bcfd33e436c8b7772fdc8730ea10a5c67b57281c5308f40cd102254f9720feaa787ea7040b4a351f5c255f9e82a741fd79f9
|
data/bin/twig-feature
CHANGED
@@ -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: "
|
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: "
|
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
|
-
|
2333
|
-
|
2334
|
-
|
2335
|
-
|
2336
|
-
|
2337
|
-
|
2338
|
-
|
2339
|
-
|
2340
|
-
|
2341
|
-
|
2342
|
-
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
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
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
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
|
data/bin/twig-update-ami
CHANGED
@@ -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.
|
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-
|
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
|
-
|
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
|