prima-twig 0.36.5 → 0.36.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-feature +60 -30
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf23dac9e1100ef3486a2a72805b2866dddfd5d
|
4
|
+
data.tar.gz: fd5690587f9eafe123cbb26598b2396f8381be6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb345449fc0e5703679c85038c69a3bdd1e701cf7794c2b5d7b2ed52f531ba8776c6e22f0d8fae5e50fc4d90a8de45700448788d0d2f28fffb707c3d58372ea7
|
7
|
+
data.tar.gz: 1822b3a6200532f082ab2da76da7ac8d056c84986fe4676d013c58ed8c3860643e14bb48fb765d9f2cc2ddc212531265c15635d630ebd3be551d1df201437aa2
|
data/bin/twig-feature
CHANGED
@@ -30,6 +30,7 @@ class Release
|
|
30
30
|
@dns_record_identifier = nil
|
31
31
|
@ecs_cluster_name = nil
|
32
32
|
@deploy_update = false
|
33
|
+
@qainit = false
|
33
34
|
@projects = {
|
34
35
|
'prima' => {},
|
35
36
|
'backoffice' => {},
|
@@ -492,7 +493,8 @@ class Release
|
|
492
493
|
end
|
493
494
|
end
|
494
495
|
get_s3_config_files
|
495
|
-
|
496
|
+
@qainit = true
|
497
|
+
deploy_feature!
|
496
498
|
end
|
497
499
|
|
498
500
|
def get_s3_config_files
|
@@ -505,7 +507,7 @@ class Release
|
|
505
507
|
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/alb/ecs-alb-public.yml', response_target: 'cloudformation/stacks/alb/ecs-alb-public.yml'})
|
506
508
|
end
|
507
509
|
|
508
|
-
def deploy_feature!
|
510
|
+
def deploy_feature!
|
509
511
|
`git pull && git submodule init && git submodule update`
|
510
512
|
if deploy_crash?
|
511
513
|
deploy_id = Digest::MD5.hexdigest(
|
@@ -638,20 +640,20 @@ class Release
|
|
638
640
|
]
|
639
641
|
create_stack(stack_name_db, stack_body, parameters, tags) unless stack_exists?(stack_name_db)
|
640
642
|
|
641
|
-
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id
|
642
|
-
create_crash_artifact(@projects['crash'][:revision], deploy_id
|
643
|
-
create_urania_artifact(@projects["urania"][:revision]
|
644
|
-
create_ermes_artifact(@projects["ermes"][:revision], deploy_id
|
645
|
-
create_bburago_artifact(@projects["bburago"][:revision]
|
646
|
-
create_hal9000_artifact(@projects["hal9000"][:revision]
|
647
|
-
create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id
|
648
|
-
create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id
|
649
|
-
create_peano_artifact(@projects["peano"][:revision], deploy_id
|
650
|
-
create_rogoreport_artifact(@projects["rogoreport"][:revision], deploy_id
|
651
|
-
create_assange_artifact(@projects["assange"][:revision], deploy_id
|
652
|
-
create_borat_artifact(@projects["borat"][:revision], deploy_id
|
653
|
-
create_bolla_artifact(@projects["bolla"][:revision], deploy_id
|
654
|
-
create_activia_artifact(@projects["activia"][:revision], deploy_id
|
643
|
+
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}-#{deploy_id}.tar.gz")
|
644
|
+
create_crash_artifact(@projects['crash'][:revision], deploy_id) unless !deploy_crash? || artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['crash'][:revision]}-#{deploy_id}-qa.tar.gz")
|
645
|
+
create_urania_artifact(@projects["urania"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"][:revision]}-qa.tar.gz")
|
646
|
+
create_ermes_artifact(@projects["ermes"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-#{deploy_id}-qa.tar.gz")
|
647
|
+
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
648
|
+
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
649
|
+
create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
|
650
|
+
create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
|
651
|
+
create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
|
652
|
+
create_rogoreport_artifact(@projects["rogoreport"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-#{deploy_id}-qa.tar.gz")
|
653
|
+
create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
|
654
|
+
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
|
655
|
+
create_bolla_artifact(@projects["bolla"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bolla/#{@projects["bolla"][:revision]}-#{deploy_id}-qa-migrator.tar.gz")
|
656
|
+
create_activia_artifact(@projects["activia"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-#{deploy_id}-qa.tar.gz")
|
655
657
|
|
656
658
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db)
|
657
659
|
import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-task-web-qa-#{deploy_id}")
|
@@ -1542,7 +1544,9 @@ class Release
|
|
1542
1544
|
|
1543
1545
|
decrypt_secrets()
|
1544
1546
|
|
1545
|
-
|
1547
|
+
if @qainit
|
1548
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1549
|
+
end
|
1546
1550
|
[
|
1547
1551
|
"docker-compose build web",
|
1548
1552
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
|
@@ -1574,7 +1578,9 @@ class Release
|
|
1574
1578
|
|
1575
1579
|
decrypt_secrets()
|
1576
1580
|
|
1577
|
-
|
1581
|
+
if @qainit
|
1582
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1583
|
+
end
|
1578
1584
|
[
|
1579
1585
|
"if echo `docker network ls` | grep crash_default; \
|
1580
1586
|
then echo 'crash_default network already existing'; \
|
@@ -1622,7 +1628,9 @@ class Release
|
|
1622
1628
|
|
1623
1629
|
decrypt_secrets()
|
1624
1630
|
|
1625
|
-
|
1631
|
+
if @qainit
|
1632
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1633
|
+
end
|
1626
1634
|
[
|
1627
1635
|
'mv docker-compose-ci.yml docker-compose.yml',
|
1628
1636
|
'docker-compose build web',
|
@@ -1661,7 +1669,9 @@ class Release
|
|
1661
1669
|
|
1662
1670
|
decrypt_secrets()
|
1663
1671
|
|
1664
|
-
|
1672
|
+
if @qainit
|
1673
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1674
|
+
end
|
1665
1675
|
[
|
1666
1676
|
"docker-compose build web",
|
1667
1677
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
|
@@ -1688,7 +1698,9 @@ class Release
|
|
1688
1698
|
|
1689
1699
|
decrypt_secrets()
|
1690
1700
|
|
1691
|
-
|
1701
|
+
if @qainit
|
1702
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1703
|
+
end
|
1692
1704
|
[
|
1693
1705
|
"docker-compose build web",
|
1694
1706
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
|
@@ -1722,7 +1734,9 @@ class Release
|
|
1722
1734
|
|
1723
1735
|
decrypt_secrets()
|
1724
1736
|
|
1725
|
-
|
1737
|
+
if @qainit
|
1738
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1739
|
+
end
|
1726
1740
|
[
|
1727
1741
|
"docker-compose build web",
|
1728
1742
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
|
@@ -1759,7 +1773,9 @@ class Release
|
|
1759
1773
|
|
1760
1774
|
decrypt_secrets()
|
1761
1775
|
|
1762
|
-
|
1776
|
+
if @qainit
|
1777
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1778
|
+
end
|
1763
1779
|
[
|
1764
1780
|
"docker-compose build web",
|
1765
1781
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh peano_web \
|
@@ -1793,7 +1809,9 @@ class Release
|
|
1793
1809
|
|
1794
1810
|
decrypt_secrets()
|
1795
1811
|
|
1796
|
-
|
1812
|
+
if @qainit
|
1813
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1814
|
+
end
|
1797
1815
|
[
|
1798
1816
|
"docker-compose build web",
|
1799
1817
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh rogoreport_web \
|
@@ -1826,7 +1844,9 @@ class Release
|
|
1826
1844
|
|
1827
1845
|
decrypt_secrets()
|
1828
1846
|
|
1829
|
-
|
1847
|
+
if @qainit
|
1848
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1849
|
+
end
|
1830
1850
|
[
|
1831
1851
|
"docker-compose build web",
|
1832
1852
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
@@ -1861,7 +1881,9 @@ class Release
|
|
1861
1881
|
|
1862
1882
|
decrypt_secrets()
|
1863
1883
|
|
1864
|
-
|
1884
|
+
if @qainit
|
1885
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1886
|
+
end
|
1865
1887
|
[
|
1866
1888
|
"docker-compose build web",
|
1867
1889
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh activia_web \
|
@@ -1891,7 +1913,9 @@ class Release
|
|
1891
1913
|
|
1892
1914
|
decrypt_secrets()
|
1893
1915
|
|
1894
|
-
|
1916
|
+
if @qainit
|
1917
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1918
|
+
end
|
1895
1919
|
[
|
1896
1920
|
"docker-compose build web",
|
1897
1921
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
@@ -1934,7 +1958,9 @@ class Release
|
|
1934
1958
|
|
1935
1959
|
decrypt_secrets()
|
1936
1960
|
|
1937
|
-
|
1961
|
+
if @qainit
|
1962
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
1963
|
+
end
|
1938
1964
|
[
|
1939
1965
|
"docker-compose build backend",
|
1940
1966
|
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
|
@@ -1983,7 +2009,9 @@ class Release
|
|
1983
2009
|
web_qa_host = get_route53_hostname(stack_name_web)
|
1984
2010
|
webri_qa_host = web_qa_host.sub("www", "wwwri")
|
1985
2011
|
|
1986
|
-
|
2012
|
+
if @qainit
|
2013
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
2014
|
+
end
|
1987
2015
|
[
|
1988
2016
|
"docker-compose build workers",
|
1989
2017
|
"rm -rf src/ && git checkout -- .",
|
@@ -2019,7 +2047,9 @@ class Release
|
|
2019
2047
|
web_qa_host = get_route53_hostname("ecs-task-web-qa-notneeded")
|
2020
2048
|
assange_qa_host = get_route53_hostname("ecs-task-assange-qa-notneeded")
|
2021
2049
|
|
2022
|
-
|
2050
|
+
if @qainit
|
2051
|
+
exec_step 'prepare-docker-compose && cp docker-compose.yml docker-compose-ci.yml'
|
2052
|
+
end
|
2023
2053
|
[
|
2024
2054
|
"bin/local_build_artifact.sh #{branch_name} #{web_qa_host} #{backoffice_qa_host} #{assange_qa_host} #{deploy_id} #{'update' if @deploy_update}"
|
2025
2055
|
].each do |cmd|
|