prima-twig 0.54.37 → 0.54.38
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 +163 -60
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db037c9ee58d72637ef23854639528802162bcafbe1849ea0736272f695272f0
|
|
4
|
+
data.tar.gz: f267907b4909d3478fdbeaf0a42a9ba0274f6e4da0925e3681d54b0e75527d27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b2456d7596ee48c9e86523f450392969c1943cc79541f2c053643c5f090c5ff960669b2a50dbd45f0514e1b41b1516d49bbf53a539dc3ee3fb5f427904baaca
|
|
7
|
+
data.tar.gz: 7de9b579b37c4357db7102885e794ae42ac5064c819f968d8890373e497ab3c2466d7c7af99116fcbd19109a549c72eb67d77089d5ef7f0ec7416fe6165e7912
|
data/bin/twig-feature
CHANGED
|
@@ -58,7 +58,8 @@ class Release
|
|
|
58
58
|
'leftorium' => {},
|
|
59
59
|
'pyxis-npm' => {},
|
|
60
60
|
'starsky' => {},
|
|
61
|
-
'hutch' => {}
|
|
61
|
+
'hutch' => {},
|
|
62
|
+
'maia' => {}
|
|
62
63
|
}
|
|
63
64
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
64
65
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
@@ -853,6 +854,10 @@ class Release
|
|
|
853
854
|
parameter_key: "WebHostname",
|
|
854
855
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
855
856
|
},
|
|
857
|
+
{
|
|
858
|
+
parameter_key: "FePrimaDomain",
|
|
859
|
+
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
860
|
+
},
|
|
856
861
|
{
|
|
857
862
|
parameter_key: "HostnamePattern",
|
|
858
863
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
@@ -909,8 +914,8 @@ class Release
|
|
|
909
914
|
case key.to_s
|
|
910
915
|
when 'crash'
|
|
911
916
|
tags << { key: 'crash', value: @projects['crash'][:name] } if deploy_crash?
|
|
912
|
-
when 'starsky', 'hutch'
|
|
913
|
-
tags << { key: key.to_s, value: @projects[key.to_s][:name] } if
|
|
917
|
+
when 'starsky', 'hutch', 'maia'
|
|
918
|
+
tags << { key: key.to_s, value: @projects[key.to_s][:name] } if deploy_starsky_hutch_maia?
|
|
914
919
|
else
|
|
915
920
|
tags << { key: key, value: value[:name] }
|
|
916
921
|
end
|
|
@@ -975,8 +980,9 @@ class Release
|
|
|
975
980
|
create_activia_artifact(@projects["activia"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-qa.tar.gz")
|
|
976
981
|
create_leftorium_artifact(@projects["leftorium"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/leftorium/#{@projects["leftorium"][:revision]}-qa.tar.gz")
|
|
977
982
|
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
|
978
|
-
create_starsky_artifact(@projects["starsky"][:revision]) unless !
|
|
979
|
-
create_hutch_artifact(@projects["hutch"][:revision]) unless !
|
|
983
|
+
create_starsky_artifact(@projects["starsky"][:revision]) unless !deploy_starsky_hutch_maia? || artifact_exists?('prima-artifacts-encrypted', "microservices/starsky/#{@projects["starsky"][:revision]}-qa.tar.gz")
|
|
984
|
+
create_hutch_artifact(@projects["hutch"][:revision]) unless !deploy_starsky_hutch_maia? || artifact_exists?('prima-artifacts-encrypted', "microservices/hutch/#{@projects["hutch"][:revision]}-qa.tar.gz")
|
|
985
|
+
create_maia_artifact(@projects["maia"][:revision]) unless !deploy_starsky_hutch_maia? || artifact_exists?('prima-artifacts-encrypted', "microservices/maia/#{@projects["maia"][:revision]}-qa.tar.gz")
|
|
980
986
|
|
|
981
987
|
wait_for_db_import(db_task) unless stack_exists?("ecs-route53-qa-#{deploy_id}") # dovrebbe essere istantaneo
|
|
982
988
|
|
|
@@ -1063,6 +1069,10 @@ class Release
|
|
|
1063
1069
|
{
|
|
1064
1070
|
parameter_key: 'HutchElbHostname',
|
|
1065
1071
|
parameter_value: get_alb_host(stack_name_alb)
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
parameter_key: 'MaiaElbHostname',
|
|
1075
|
+
parameter_value: get_alb_host(stack_name_alb)
|
|
1066
1076
|
}
|
|
1067
1077
|
]
|
|
1068
1078
|
|
|
@@ -1615,7 +1625,7 @@ class Release
|
|
|
1615
1625
|
end
|
|
1616
1626
|
end
|
|
1617
1627
|
|
|
1618
|
-
if
|
|
1628
|
+
if deploy_starsky_hutch_maia?
|
|
1619
1629
|
stack_name_starsky = "ecs-task-starsky-qa-#{deploy_id}"
|
|
1620
1630
|
git_checkout_version('starsky', @projects["starsky"][:revision])
|
|
1621
1631
|
stack_body = IO.read('projects/starsky/deploy/task.yml')
|
|
@@ -1771,6 +1781,10 @@ class Release
|
|
|
1771
1781
|
parameter_key: "WebHostname",
|
|
1772
1782
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
1773
1783
|
},
|
|
1784
|
+
{
|
|
1785
|
+
parameter_key: "FePrimaDomain",
|
|
1786
|
+
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
1787
|
+
},
|
|
1774
1788
|
{
|
|
1775
1789
|
parameter_key: "HostnamePattern",
|
|
1776
1790
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
@@ -1815,6 +1829,10 @@ class Release
|
|
|
1815
1829
|
parameter_key: "WebHostname",
|
|
1816
1830
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
1817
1831
|
},
|
|
1832
|
+
{
|
|
1833
|
+
parameter_key: "FePrimaDomain",
|
|
1834
|
+
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
1835
|
+
},
|
|
1818
1836
|
{
|
|
1819
1837
|
parameter_key: "HostnamePattern",
|
|
1820
1838
|
parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
|
|
@@ -1864,8 +1882,8 @@ class Release
|
|
|
1864
1882
|
end
|
|
1865
1883
|
|
|
1866
1884
|
|
|
1867
|
-
if
|
|
1868
|
-
wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !
|
|
1885
|
+
if deploy_starsky_hutch_maia?
|
|
1886
|
+
wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !deploy_starsky_hutch_maia?
|
|
1869
1887
|
|
|
1870
1888
|
stack_name_hutch = "ecs-task-hutch-qa-#{deploy_id}"
|
|
1871
1889
|
git_checkout_version('hutch', @projects["hutch"][:revision])
|
|
@@ -1912,6 +1930,54 @@ class Release
|
|
|
1912
1930
|
end
|
|
1913
1931
|
end
|
|
1914
1932
|
|
|
1933
|
+
stack_name_maia = "ecs-task-maia-qa-#{deploy_id}"
|
|
1934
|
+
git_checkout_version('maia', @projects["maia"][:revision])
|
|
1935
|
+
stack_body = File.read('projects/maia/deploy/task.yml')
|
|
1936
|
+
parameters = [
|
|
1937
|
+
{
|
|
1938
|
+
parameter_key: "Environment",
|
|
1939
|
+
parameter_value: "qa"
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
parameter_key: "ReleaseVersion",
|
|
1943
|
+
parameter_value: "#{@projects["maia"][:revision]}"
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
parameter_key: "ALBShortName",
|
|
1947
|
+
parameter_value: "maia-qa-#{deploy_id}"[0..27]
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
parameter_key: "ECSClusterName",
|
|
1951
|
+
parameter_value: @ecs_cluster_name
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
parameter_key: "EnvHash",
|
|
1955
|
+
parameter_value: deploy_id
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
parameter_key: "HostnamePatternPublic",
|
|
1959
|
+
parameter_value: "api*-#{@dns_record_identifier}.qa.colaster.com"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
parameter_key: "HostnamePatternPriority",
|
|
1963
|
+
parameter_value: (hostname_pattern_priority.to_i + 128).to_s
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
parameter_key: "ProxyHostnameIntermediari",
|
|
1967
|
+
parameter_value: "api-intermediari-#{@dns_record_identifier}.qa.colaster.com"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
parameter_key: "ProxyHostnameApp",
|
|
1971
|
+
parameter_value: "api-#{@dns_record_identifier}.qa.colaster.com"
|
|
1972
|
+
}
|
|
1973
|
+
]
|
|
1974
|
+
if stack_exists?(stack_name_maia)
|
|
1975
|
+
cur_version = get_currently_deployed_version(stack_name_maia)
|
|
1976
|
+
update_stack(stack_name_maia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["maia"][:revision])
|
|
1977
|
+
else
|
|
1978
|
+
create_stack(stack_name_maia, stack_body, parameters, tags, @cf_role)
|
|
1979
|
+
end
|
|
1980
|
+
|
|
1915
1981
|
wait_for_stack_ready(stack_name_web) unless stack_ready?(stack_name_web)
|
|
1916
1982
|
wait_for_stack_ready(stack_name_consumer) unless stack_ready?(stack_name_consumer)
|
|
1917
1983
|
wait_for_stack_ready(stack_name_ermes) unless stack_ready?(stack_name_ermes)
|
|
@@ -1921,7 +1987,8 @@ class Release
|
|
|
1921
1987
|
wait_for_stack_ready(stack_name_borat) unless stack_ready?(stack_name_borat)
|
|
1922
1988
|
wait_for_stack_ready(stack_name_activia) unless stack_ready?(stack_name_activia)
|
|
1923
1989
|
wait_for_stack_ready(stack_name_crash) unless stack_ready?(stack_name_crash) unless !deploy_crash?
|
|
1924
|
-
wait_for_stack_ready(stack_name_hutch) unless stack_ready?(stack_name_hutch) unless !
|
|
1990
|
+
wait_for_stack_ready(stack_name_hutch) unless stack_ready?(stack_name_hutch) unless !deploy_starsky_hutch_maia?
|
|
1991
|
+
wait_for_stack_ready(stack_name_maia) unless stack_ready?(stack_name_maia) unless !deploy_starsky_hutch_maia?
|
|
1925
1992
|
|
|
1926
1993
|
update_service_defaults(stack_name_web)
|
|
1927
1994
|
update_service_defaults(stack_name_consumer)
|
|
@@ -1938,27 +2005,30 @@ class Release
|
|
|
1938
2005
|
update_service_defaults(stack_name_skynet)
|
|
1939
2006
|
update_service_defaults(stack_name_leftorium)
|
|
1940
2007
|
update_service_defaults(stack_name_rachele)
|
|
1941
|
-
update_service_defaults(stack_name_starsky) unless !
|
|
1942
|
-
update_service_defaults(stack_name_hutch) unless !
|
|
2008
|
+
update_service_defaults(stack_name_starsky) unless !deploy_starsky_hutch_maia?
|
|
2009
|
+
update_service_defaults(stack_name_hutch) unless !deploy_starsky_hutch_maia?
|
|
2010
|
+
update_service_defaults(stack_name_maia) unless !deploy_starsky_hutch_maia?
|
|
1943
2011
|
update_service_defaults(stack_name_crash) unless !deploy_crash?
|
|
1944
2012
|
|
|
1945
|
-
activia_hostname = get_route53_hostname(
|
|
1946
|
-
assange_hostname = get_route53_hostname(
|
|
1947
|
-
bburago_hostname = get_route53_hostname(
|
|
1948
|
-
borat_hostname = get_route53_hostname(
|
|
1949
|
-
ermes_hostname = get_route53_hostname(
|
|
1950
|
-
fidaty_hostname = get_route53_hostname(
|
|
1951
|
-
hal9000_hostname = get_route53_hostname(
|
|
1952
|
-
prima_hostname = get_route53_hostname(
|
|
1953
|
-
peano_hostname = get_route53_hostname(
|
|
1954
|
-
skynet_hostname = get_route53_hostname(
|
|
1955
|
-
urania_hostname = get_route53_hostname(
|
|
1956
|
-
roger_hostname = get_route53_hostname(
|
|
1957
|
-
leftorium_hostname = get_route53_hostname(
|
|
1958
|
-
rachele_hostname = get_route53_hostname(
|
|
1959
|
-
crash_hostname = get_route53_hostname(
|
|
1960
|
-
starsky_hostname = get_route53_hostname(
|
|
1961
|
-
hutch_hostname = get_route53_hostname(
|
|
2013
|
+
activia_hostname = get_route53_hostname("activia")
|
|
2014
|
+
assange_hostname = get_route53_hostname("assange")
|
|
2015
|
+
bburago_hostname = get_route53_hostname("bburago")
|
|
2016
|
+
borat_hostname = get_route53_hostname("borat")
|
|
2017
|
+
ermes_hostname = get_route53_hostname("ermes")
|
|
2018
|
+
fidaty_hostname = get_route53_hostname("fidaty")
|
|
2019
|
+
hal9000_hostname = get_route53_hostname("hal9000")
|
|
2020
|
+
prima_hostname = get_route53_hostname("web")
|
|
2021
|
+
peano_hostname = get_route53_hostname("peano")
|
|
2022
|
+
skynet_hostname = get_route53_hostname("skynet")
|
|
2023
|
+
urania_hostname = get_route53_hostname("urania")
|
|
2024
|
+
roger_hostname = get_route53_hostname("roger")
|
|
2025
|
+
leftorium_hostname = get_route53_hostname("leftorium")
|
|
2026
|
+
rachele_hostname = get_route53_hostname("rachele")
|
|
2027
|
+
crash_hostname = get_route53_hostname("crash") unless !deploy_crash?
|
|
2028
|
+
starsky_hostname = get_route53_hostname("starsky") unless !deploy_starsky_hutch_maia?
|
|
2029
|
+
hutch_hostname = get_route53_hostname("hutch") unless !deploy_starsky_hutch_maia?
|
|
2030
|
+
maia_app_hostname = get_route53_hostname("maia-app") unless !deploy_starsky_hutch_maia?
|
|
2031
|
+
maia_intermediari_hostname = get_route53_hostname("maia-intermediari") unless !deploy_starsky_hutch_maia?
|
|
1962
2032
|
|
|
1963
2033
|
# launch_marley ec2_ip_address(asg_stack_name), prima_hostname, borat_hostname
|
|
1964
2034
|
|
|
@@ -1981,7 +2051,9 @@ class Release
|
|
|
1981
2051
|
> Crash url: https://#{crash_hostname}" if deploy_crash?
|
|
1982
2052
|
projects_text.concat "
|
|
1983
2053
|
> Starsky url: https://#{starsky_hostname}
|
|
1984
|
-
> Hutch url: https://#{hutch_hostname}
|
|
2054
|
+
> Hutch url: https://#{hutch_hostname}
|
|
2055
|
+
> Maia App url: https://#{maia_app_hostname}
|
|
2056
|
+
> Maia Intermediari url: https://#{maia_intermediari_hostname}" if deploy_starsky_hutch_maia?
|
|
1985
2057
|
projects_text.concat "
|
|
1986
2058
|
> RabbitMQ url: http://#{ec2_ip_address(asg_stack_name)}:15672
|
|
1987
2059
|
> Supervisor url: http://#{ec2_ip_address(asg_stack_name)}:9001
|
|
@@ -1993,42 +2065,46 @@ class Release
|
|
|
1993
2065
|
qainit_write_output(projects_text, 'Indirizzi scritti su ')
|
|
1994
2066
|
end
|
|
1995
2067
|
|
|
1996
|
-
def get_route53_hostname(
|
|
2068
|
+
def get_route53_hostname(project)
|
|
1997
2069
|
case
|
|
1998
|
-
when
|
|
2070
|
+
when project.include?('web')
|
|
1999
2071
|
host = "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
2000
|
-
when
|
|
2072
|
+
when project.include?('urania')
|
|
2001
2073
|
host = "urania-#{@dns_record_identifier}.qa.colaster.com"
|
|
2002
|
-
when
|
|
2074
|
+
when project.include?('bburago')
|
|
2003
2075
|
host = "bburago-#{@dns_record_identifier}.qa.colaster.com"
|
|
2004
|
-
when
|
|
2076
|
+
when project.include?('hal9000')
|
|
2005
2077
|
host = "hal9000-#{@dns_record_identifier}.qa.colaster.com"
|
|
2006
|
-
when
|
|
2078
|
+
when project.include?('fidaty')
|
|
2007
2079
|
host = "fidaty-#{@dns_record_identifier}.qa.colaster.com"
|
|
2008
|
-
when
|
|
2080
|
+
when project.include?('peano')
|
|
2009
2081
|
host = "peano-#{@dns_record_identifier}.qa.colaster.com"
|
|
2010
|
-
when
|
|
2082
|
+
when project.include?('assange')
|
|
2011
2083
|
host = "assange-#{@dns_record_identifier}.qa.colaster.com"
|
|
2012
|
-
when
|
|
2084
|
+
when project.include?('borat')
|
|
2013
2085
|
host = "backoffice-#{@dns_record_identifier}.qa.colaster.com"
|
|
2014
|
-
when
|
|
2086
|
+
when project.include?('crash')
|
|
2015
2087
|
host = "crash-#{@dns_record_identifier}.qa.colaster.com"
|
|
2016
|
-
when
|
|
2088
|
+
when project.include?('ermes')
|
|
2017
2089
|
host = "ermes-#{@dns_record_identifier}.qa.colaster.com"
|
|
2018
|
-
when
|
|
2090
|
+
when project.include?('activia')
|
|
2019
2091
|
host = "activia-#{@dns_record_identifier}.qa.colaster.com"
|
|
2020
|
-
when
|
|
2092
|
+
when project.include?('skynet')
|
|
2021
2093
|
host = "skynet-#{@dns_record_identifier}.qa.colaster.com"
|
|
2022
|
-
when
|
|
2094
|
+
when project.include?('roger')
|
|
2023
2095
|
host = "roger-#{@dns_record_identifier}.qa.colaster.com"
|
|
2024
|
-
when
|
|
2096
|
+
when project.include?('leftorium')
|
|
2025
2097
|
host = "leftorium-#{@dns_record_identifier}.qa.colaster.com"
|
|
2026
|
-
when
|
|
2098
|
+
when project.include?('rachele')
|
|
2027
2099
|
host = "rachele-#{@dns_record_identifier}.qa.colaster.com"
|
|
2028
|
-
when
|
|
2100
|
+
when project.include?('starsky')
|
|
2029
2101
|
host = "starsky-#{@dns_record_identifier}.qa.colaster.com"
|
|
2030
|
-
when
|
|
2102
|
+
when project.include?('hutch')
|
|
2031
2103
|
host = "hutch-#{@dns_record_identifier}.qa.colaster.com"
|
|
2104
|
+
when project.include?('maia-app')
|
|
2105
|
+
host = "api-#{@dns_record_identifier}.qa.colaster.com"
|
|
2106
|
+
when project.include?('maia-intermediari')
|
|
2107
|
+
host = "api-intermediari-#{@dns_record_identifier}.qa.colaster.com"
|
|
2032
2108
|
end
|
|
2033
2109
|
host
|
|
2034
2110
|
end
|
|
@@ -2087,6 +2163,8 @@ class Release
|
|
|
2087
2163
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
2088
2164
|
when stack_name.include?('hutch')
|
|
2089
2165
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
2166
|
+
when stack_name.include?('maia')
|
|
2167
|
+
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
2090
2168
|
end
|
|
2091
2169
|
resp = @cf.describe_stack_resource({
|
|
2092
2170
|
stack_name: stack_name,
|
|
@@ -2140,6 +2218,8 @@ class Release
|
|
|
2140
2218
|
logical_resource_id = 'ECSServiceStarskyQA'
|
|
2141
2219
|
when stack_name.include?('hutch')
|
|
2142
2220
|
logical_resource_id = 'ECSServiceHutch'
|
|
2221
|
+
when stack_name.include?('maia')
|
|
2222
|
+
logical_resource_id = 'ECSServiceMaia'
|
|
2143
2223
|
else
|
|
2144
2224
|
raise "Service name non gestito per lo stack #{stack_name}"
|
|
2145
2225
|
end
|
|
@@ -2205,17 +2285,7 @@ class Release
|
|
|
2205
2285
|
|
|
2206
2286
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2207
2287
|
exec_step 'prepare-docker-compose --directory assange && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2208
|
-
|
|
2209
|
-
"docker-compose build web",
|
|
2210
|
-
"docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
|
|
2211
|
-
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2212
|
-
mix deps.get && mix compile && mix deps.compile && \
|
|
2213
|
-
mix phx.digest && \
|
|
2214
|
-
rm -rf _build/qa/rel/ && \
|
|
2215
|
-
mix release --env=qa'"
|
|
2216
|
-
].each do |cmd|
|
|
2217
|
-
execute_command cmd
|
|
2218
|
-
end
|
|
2288
|
+
exec_step 'deploy/build_qa_artifact'
|
|
2219
2289
|
|
|
2220
2290
|
cleanup_containers
|
|
2221
2291
|
|
|
@@ -2503,6 +2573,38 @@ class Release
|
|
|
2503
2573
|
Dir.chdir '../../'
|
|
2504
2574
|
end
|
|
2505
2575
|
|
|
2576
|
+
def create_maia_artifact(revision)
|
|
2577
|
+
output "Preparo l'artifact maia .zip\n".yellow
|
|
2578
|
+
|
|
2579
|
+
git_checkout_version('maia', revision)
|
|
2580
|
+
|
|
2581
|
+
Dir.chdir 'projects/maia'
|
|
2582
|
+
|
|
2583
|
+
decrypt_secrets()
|
|
2584
|
+
|
|
2585
|
+
if File.exists? 'deploy/build_qa_artifact'
|
|
2586
|
+
exec_step 'deploy/build_qa_artifact'
|
|
2587
|
+
else
|
|
2588
|
+
exec_step 'docker build -t prima/maia-ci:1 .'
|
|
2589
|
+
[
|
|
2590
|
+
"docker run --rm -it -w $PWD -v $PWD:$PWD -u root -e MIX_ENV=qa --entrypoint /bin/bash prima/maia-ci:1 \
|
|
2591
|
+
'-c' 'mix local.hex --force && \
|
|
2592
|
+
mix deps.get && \
|
|
2593
|
+
mix release.clean --implode --no-confirm && \
|
|
2594
|
+
mix release --env=qa'"
|
|
2595
|
+
].each do |cmd|
|
|
2596
|
+
execute_command cmd
|
|
2597
|
+
end
|
|
2598
|
+
end
|
|
2599
|
+
|
|
2600
|
+
cleanup_containers
|
|
2601
|
+
|
|
2602
|
+
artifact_path = Dir.glob('_build/qa/rel/maia/releases/*/maia.tar.gz').first
|
|
2603
|
+
upload_artifact(artifact_path, "microservices/maia/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
|
2604
|
+
|
|
2605
|
+
Dir.chdir '../../'
|
|
2606
|
+
end
|
|
2607
|
+
|
|
2506
2608
|
def create_peano_artifact(revision)
|
|
2507
2609
|
output "Preparo l'artifact peano .zip\n".yellow
|
|
2508
2610
|
|
|
@@ -2808,10 +2910,11 @@ class Release
|
|
|
2808
2910
|
crash_present || leftorium_present
|
|
2809
2911
|
end
|
|
2810
2912
|
|
|
2811
|
-
def
|
|
2913
|
+
def deploy_starsky_hutch_maia?
|
|
2812
2914
|
starsky_present = !@projects['starsky'].nil? && !@projects['starsky'].empty? && @projects['starsky'][:name] != 'master' && !@projects['starsky'][:default_branch]
|
|
2813
2915
|
hutch_present = !@projects['hutch'].nil? && !@projects['hutch'].empty? && @projects['hutch'][:name] != 'master' && !@projects['hutch'][:default_branch]
|
|
2814
|
-
|
|
2916
|
+
maia_present = !@projects['maia'].nil? && !@projects['maia'].empty? && @projects['maia'][:name] != 'master' && !@projects['maia'][:default_branch]
|
|
2917
|
+
starsky_present || hutch_present || maia_present
|
|
2815
2918
|
end
|
|
2816
2919
|
|
|
2817
2920
|
def get_pyxis_version(deploy_id)
|
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.54.
|
|
4
|
+
version: 0.54.38
|
|
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-19 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk
|