prima-twig 0.39.10 → 0.39.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/twig-feature +12 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ba99dd0fe383ed6b2f5f0ba22b77381e09c7eb473fb569292d5633a476afed23
|
4
|
+
data.tar.gz: 852584e89f08b87899f6124b02cab4e5d357c8ea49faefa107ca45d22514ba04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c194ef6d4697d97169160b55b6a4408391c7bf3752938eb24bff17745eeb5ea29efc7d36f434ea78d3a13f6068075b266f3a918ed1c50f64720d6e9a28cb6b54
|
7
|
+
data.tar.gz: 9e8b7a42e9fc20d2fa0545b7ee48e9ca31e576133b6169fea7bbb18a1a092fc4a934022743342b255bca61ad40dd6ff7137a239545b82f9f728196c62f5b520c
|
data/bin/twig-feature
CHANGED
@@ -2371,6 +2371,12 @@ class Release
|
|
2371
2371
|
def create_borat_artifact(revision, deploy_id)
|
2372
2372
|
output "Preparo l'artifact borat .zip\n".yellow
|
2373
2373
|
|
2374
|
+
if File.readlines("docker-compose.yml").grep(/backend:/).size > 0
|
2375
|
+
docker_container = "backend"
|
2376
|
+
else
|
2377
|
+
docker_container = "web"
|
2378
|
+
end
|
2379
|
+
|
2374
2380
|
git_checkout_version('borat', revision)
|
2375
2381
|
|
2376
2382
|
Dir.chdir 'projects/borat'
|
@@ -2398,8 +2404,8 @@ class Release
|
|
2398
2404
|
exec_step 'prepare-docker-compose --directory borat && cp docker-compose-qainit.yml docker-compose.yml'
|
2399
2405
|
[
|
2400
2406
|
"docker network create borat_network || true",
|
2401
|
-
"docker-compose build
|
2402
|
-
"docker-compose run -w $PWD -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh
|
2407
|
+
"docker-compose build #{docker_container}",
|
2408
|
+
"docker-compose run -w $PWD -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh #{docker_container} \
|
2403
2409
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2404
2410
|
sed -i \"s/backoffice-legacy-qa-host/#{backoffice_qa_host}/g\" config/qa.exs && \
|
2405
2411
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
@@ -2424,8 +2430,8 @@ class Release
|
|
2424
2430
|
else
|
2425
2431
|
[
|
2426
2432
|
"docker network create borat_network || true",
|
2427
|
-
"docker-compose build
|
2428
|
-
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh
|
2433
|
+
"docker-compose build #{docker_container}",
|
2434
|
+
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_#{docker_container} \
|
2429
2435
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2430
2436
|
sed -i \"s/backoffice-legacy-qa-host/#{backoffice_qa_host}/g\" config/qa.exs && \
|
2431
2437
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
@@ -2448,9 +2454,9 @@ class Release
|
|
2448
2454
|
end
|
2449
2455
|
|
2450
2456
|
if @qainit
|
2451
|
-
artifact_path = Dir.glob("_build/qa/rel/
|
2457
|
+
artifact_path = Dir.glob("_build/qa/rel/borat/releases/*/borat.tar.gz").first
|
2452
2458
|
else
|
2453
|
-
artifact_path = Dir.glob("_build/qa/rel/
|
2459
|
+
artifact_path = Dir.glob("_build/qa/rel/borat/releases/*/borat.tar.gz").first
|
2454
2460
|
end
|
2455
2461
|
upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
2456
2462
|
|
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.39.
|
4
|
+
version: 0.39.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2018-
|
16
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: aws-sdk
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.7.7
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: The Prima twig toolbelt
|