prima-twig 0.36.41 → 0.36.42
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 +87 -58
- 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: 6027187a73681996fcd123851bc8330d3281355d
|
|
4
|
+
data.tar.gz: 4e97f4ced0a907a723ac8de5328c90346e12ebb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77d6fd1e202060f1d750868885e648ebf898f92e67434e00e266b77948e54073d3dd44296d0dc87e7c46b8cf34d2f3ded5b62003b0683fa16295f202a5951a3b
|
|
7
|
+
data.tar.gz: 2f323c76e541fbb8ca6a57de672c0e2eb5e98a54401c69be2a2e8cd984467b8b263f9042d281ef888551c86d24a5dd54bb40694a1577f1d6dff100e37cf5069c
|
data/bin/twig-feature
CHANGED
|
@@ -31,6 +31,7 @@ class Release
|
|
|
31
31
|
@ecs_cluster_name = nil
|
|
32
32
|
@deploy_update = false
|
|
33
33
|
@qainit = false
|
|
34
|
+
@qainit_folder = "/var/cache/ci/#{ENV['DRONE_REPO']}/#{ENV['DRONE_BRANCH']}/#{ENV['DRONE_BUILD_NUMBER']}"
|
|
34
35
|
@projects = {
|
|
35
36
|
'prima' => {},
|
|
36
37
|
'backoffice' => {},
|
|
@@ -651,22 +652,18 @@ class Release
|
|
|
651
652
|
]
|
|
652
653
|
create_stack(stack_name_db, stack_body, parameters, tags) unless stack_exists?(stack_name_db)
|
|
653
654
|
|
|
654
|
-
|
|
655
|
-
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")
|
|
656
|
-
# end
|
|
655
|
+
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")
|
|
657
656
|
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")
|
|
658
657
|
create_urania_artifact(@projects["urania"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"][:revision]}-qa.tar.gz")
|
|
659
|
-
|
|
660
|
-
create_ermes_artifact(@projects["ermes"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
661
|
-
# end
|
|
658
|
+
create_ermes_artifact(@projects["ermes"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
662
659
|
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
|
663
660
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
|
664
661
|
create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
665
|
-
|
|
662
|
+
unless @qainit
|
|
666
663
|
create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
664
|
+
end
|
|
665
|
+
create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
666
|
+
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")
|
|
670
667
|
create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
671
668
|
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
672
669
|
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")
|
|
@@ -1570,7 +1567,9 @@ class Release
|
|
|
1570
1567
|
|
|
1571
1568
|
if @qainit
|
|
1572
1569
|
execute_command 'pwd && ls -l && ls config'
|
|
1573
|
-
[ "docker run -v
|
|
1570
|
+
# [ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
|
|
1571
|
+
# [ "docker run -v /var/cache/ci/primait/qainit/master/project/projects/urania/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
|
|
1572
|
+
[ "docker run -v #{@qainit_folder}/project/projects/urania/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
|
|
1574
1573
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
1575
1574
|
mix deps.get && mix compile && mix deps.compile && \
|
|
1576
1575
|
rm -rf _build/qa/rel/ && \
|
|
@@ -1591,7 +1590,8 @@ class Release
|
|
|
1591
1590
|
|
|
1592
1591
|
if @qainit
|
|
1593
1592
|
execute_command 'pwd && ls -l'
|
|
1594
|
-
artifact_path = Dir.glob("/var/cache/ci/project/projects/urania/_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
|
1593
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/urania/_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
|
1594
|
+
artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
|
1595
1595
|
else
|
|
1596
1596
|
artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
|
1597
1597
|
end
|
|
@@ -1628,24 +1628,26 @@ class Release
|
|
|
1628
1628
|
execute_command cmd
|
|
1629
1629
|
end
|
|
1630
1630
|
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1631
|
+
if @qainit
|
|
1632
|
+
execute_command 'pwd && ls -l && ls config'
|
|
1633
|
+
# [ "docker run --rm -v /var/cache/ci/primait/qainit/master/project/projects/ermes/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
|
|
1634
|
+
# [ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
|
|
1635
|
+
[ "docker run --rm -v #{@qainit_folder}/project/projects/ermes/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
|
|
1636
|
+
'-c' 'pwd && ls -la && \
|
|
1637
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
1638
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
1639
|
+
mix local.hex --force && mix hex.info && \
|
|
1640
|
+
mix deps.get && mix compile && mix deps.compile && \
|
|
1641
|
+
mix phx.digest && \
|
|
1642
|
+
rm -rf _build/qa/rel/ && \
|
|
1643
|
+
mix release --env=qa'",
|
|
1644
|
+
"if echo `docker ps` | grep crash; \
|
|
1645
|
+
then echo 'cannot delete crash_default network'; \
|
|
1646
|
+
else docker network rm crash_default; fi "
|
|
1647
|
+
].each do |cmd|
|
|
1648
|
+
execute_command cmd
|
|
1649
|
+
end
|
|
1650
|
+
else
|
|
1649
1651
|
[ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
|
|
1650
1652
|
'-c' 'sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
1651
1653
|
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
@@ -1660,11 +1662,12 @@ class Release
|
|
|
1660
1662
|
].each do |cmd|
|
|
1661
1663
|
execute_command cmd
|
|
1662
1664
|
end
|
|
1663
|
-
|
|
1665
|
+
end
|
|
1664
1666
|
|
|
1665
1667
|
if @qainit
|
|
1666
1668
|
execute_command 'pwd && ls -l'
|
|
1667
|
-
artifact_path = Dir.glob("/var/cache/ci/project/projects/ermes/_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
|
|
1669
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/ermes/_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
|
|
1670
|
+
artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
|
|
1668
1671
|
else
|
|
1669
1672
|
artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
|
|
1670
1673
|
end
|
|
@@ -1697,9 +1700,10 @@ class Release
|
|
|
1697
1700
|
if @qainit
|
|
1698
1701
|
# exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1699
1702
|
exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
|
|
1703
|
+
# "docker-compose run -v /var/cache/ci/primait/qainit/master/project/projects/crash/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e MIX_ENV=qa crash_web \
|
|
1700
1704
|
[
|
|
1701
1705
|
'docker-compose build web',
|
|
1702
|
-
"docker-compose run -v /
|
|
1706
|
+
"docker-compose run -v #{@qainit_folder}/project/projects/crash/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e MIX_ENV=qa crash_web \
|
|
1703
1707
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
1704
1708
|
sed -i \"s/crash-qa-host/#{crash_qa_host}/g\" config/qa.exs && \
|
|
1705
1709
|
mix local.hex --force && mix hex.info && \
|
|
@@ -1745,7 +1749,8 @@ class Release
|
|
|
1745
1749
|
|
|
1746
1750
|
if @qainit
|
|
1747
1751
|
execute_command 'pwd && ls -l'
|
|
1748
|
-
artifact_path = Dir.glob(
|
|
1752
|
+
artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
|
|
1753
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/crash/_build/qa/rel/crash/releases/*/crash.tar.gz").first
|
|
1749
1754
|
else
|
|
1750
1755
|
artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
|
|
1751
1756
|
end
|
|
@@ -1766,9 +1771,12 @@ class Release
|
|
|
1766
1771
|
if @qainit
|
|
1767
1772
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1768
1773
|
exec_step 'prepare-docker-compose --directory bburago && cp docker-compose-qainit.yml docker-compose.yml'
|
|
1774
|
+
# [
|
|
1775
|
+
# "docker-compose build web",
|
|
1776
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/bburago/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
|
|
1769
1777
|
[
|
|
1770
1778
|
"docker-compose build web",
|
|
1771
|
-
"docker run -v /
|
|
1779
|
+
"docker run -v #{@qainit_folder}/project/projects/bburago/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
|
|
1772
1780
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
1773
1781
|
mix deps.get && mix compile && mix deps.compile && \
|
|
1774
1782
|
rm -rf _build/qa/rel/ && \
|
|
@@ -1791,7 +1799,8 @@ class Release
|
|
|
1791
1799
|
|
|
1792
1800
|
if @qainit
|
|
1793
1801
|
execute_command 'pwd && ls -l'
|
|
1794
|
-
artifact_path = Dir.glob(
|
|
1802
|
+
artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
|
|
1803
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/bburago/_build/qa/rel/bburago/releases/*/bburago.tar.gz").first
|
|
1795
1804
|
else
|
|
1796
1805
|
artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
|
|
1797
1806
|
end
|
|
@@ -1812,9 +1821,12 @@ class Release
|
|
|
1812
1821
|
if @qainit
|
|
1813
1822
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1814
1823
|
exec_step 'prepare-docker-compose --directory hal9000 && cp docker-compose-qainit.yml docker-compose.yml'
|
|
1824
|
+
# [
|
|
1825
|
+
# "docker-compose build web", #{@qainit_folder}
|
|
1826
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/hal9000/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
|
|
1815
1827
|
[
|
|
1816
1828
|
"docker-compose build web",
|
|
1817
|
-
"docker run -v /
|
|
1829
|
+
"docker run -v #{@qainit_folder}/project/projects/hal9000/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
|
|
1818
1830
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
1819
1831
|
mix deps.get && mix compile && mix deps.compile && \
|
|
1820
1832
|
mix phx.digest && \
|
|
@@ -1839,7 +1851,8 @@ class Release
|
|
|
1839
1851
|
|
|
1840
1852
|
if @qainit
|
|
1841
1853
|
execute_command 'pwd && ls -l'
|
|
1842
|
-
artifact_path = Dir.glob("
|
|
1854
|
+
artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
|
|
1855
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/hal9000/_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
|
|
1843
1856
|
else
|
|
1844
1857
|
artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
|
|
1845
1858
|
end
|
|
@@ -1866,9 +1879,12 @@ class Release
|
|
|
1866
1879
|
if @qainit
|
|
1867
1880
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1868
1881
|
exec_step 'prepare-docker-compose --directory fidaty && cp docker-compose-qainit.yml docker-compose.yml'
|
|
1882
|
+
# [
|
|
1883
|
+
# "docker-compose build web",
|
|
1884
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/fidaty/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
|
|
1869
1885
|
[
|
|
1870
1886
|
"docker-compose build web",
|
|
1871
|
-
"docker run -v /
|
|
1887
|
+
"docker run -v #{@qainit_folder}/project/projects/fidaty/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
|
|
1872
1888
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
1873
1889
|
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
1874
1890
|
mix local.hex --force && mix hex.info && \
|
|
@@ -1897,7 +1913,8 @@ class Release
|
|
|
1897
1913
|
|
|
1898
1914
|
if @qainit
|
|
1899
1915
|
execute_command 'pwd && ls -l'
|
|
1900
|
-
artifact_path = Dir.glob("
|
|
1916
|
+
artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
|
1917
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/fidaty/_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
|
1901
1918
|
else
|
|
1902
1919
|
artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
|
1903
1920
|
end
|
|
@@ -1925,9 +1942,10 @@ class Release
|
|
|
1925
1942
|
if @qainit
|
|
1926
1943
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1927
1944
|
exec_step 'prepare-docker-compose --directory peano && cp docker-compose-qainit.yml docker-compose.yml'
|
|
1945
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/peano/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh peano_web \
|
|
1928
1946
|
[
|
|
1929
|
-
"docker-compose build web",
|
|
1930
|
-
"docker run -v /
|
|
1947
|
+
"docker-compose build web",
|
|
1948
|
+
"docker run -v #{@qainit_folder}/project/projects/peano/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh peano_web \
|
|
1931
1949
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
1932
1950
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
1933
1951
|
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
@@ -1954,7 +1972,8 @@ class Release
|
|
|
1954
1972
|
|
|
1955
1973
|
if @qainit
|
|
1956
1974
|
execute_command 'pwd && ls -l'
|
|
1957
|
-
artifact_path = Dir.glob("
|
|
1975
|
+
artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
|
|
1976
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/peano/_build/qa/rel/peano/releases/*/peano.tar.gz").first
|
|
1958
1977
|
else
|
|
1959
1978
|
artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
|
|
1960
1979
|
end
|
|
@@ -1980,9 +1999,10 @@ class Release
|
|
|
1980
1999
|
if @qainit
|
|
1981
2000
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
1982
2001
|
exec_step 'prepare-docker-compose --directory rogoreport && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2002
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/rogoreport/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh rogoreport_web \
|
|
1983
2003
|
[
|
|
1984
2004
|
"docker-compose build web",
|
|
1985
|
-
"docker run -v /
|
|
2005
|
+
"docker run -v #{@qainit_folder}/project/projects/rogoreport/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh rogoreport_web \
|
|
1986
2006
|
'-c' 'sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" apps/escile/config/qa.exs && \
|
|
1987
2007
|
sed -i \"s/web-qa-host/#{web_qa_host}/g\" apps/escile/config/qa.exs && \
|
|
1988
2008
|
cat apps/escile/config/qa.exs && \
|
|
@@ -2011,7 +2031,8 @@ class Release
|
|
|
2011
2031
|
|
|
2012
2032
|
if @qainit
|
|
2013
2033
|
execute_command 'pwd && ls -l'
|
|
2014
|
-
artifact_path = Dir.glob("
|
|
2034
|
+
artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
|
|
2035
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/rogoreport*/_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
|
|
2015
2036
|
else
|
|
2016
2037
|
artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
|
|
2017
2038
|
end
|
|
@@ -2035,9 +2056,10 @@ class Release
|
|
|
2035
2056
|
if @qainit
|
|
2036
2057
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2037
2058
|
exec_step 'prepare-docker-compose --directory assange && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2059
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/assange/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
|
2038
2060
|
[
|
|
2039
2061
|
"docker-compose build web",
|
|
2040
|
-
"docker run -v /
|
|
2062
|
+
"docker run -v #{@qainit_folder}/project/projects/assange/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
|
2041
2063
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2042
2064
|
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
2043
2065
|
mix deps.get && mix compile && mix deps.compile && \
|
|
@@ -2064,7 +2086,8 @@ class Release
|
|
|
2064
2086
|
|
|
2065
2087
|
if @qainit
|
|
2066
2088
|
execute_command 'pwd && ls -l'
|
|
2067
|
-
artifact_path = Dir.glob("
|
|
2089
|
+
artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
|
|
2090
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/assange/_build/qa/rel/assange/releases/*/assange.tar.gz").first
|
|
2068
2091
|
else
|
|
2069
2092
|
artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
|
|
2070
2093
|
end
|
|
@@ -2091,9 +2114,10 @@ class Release
|
|
|
2091
2114
|
if @qainit
|
|
2092
2115
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2093
2116
|
exec_step 'prepare-docker-compose --directory activia && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2117
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/activia/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh activia_web \
|
|
2094
2118
|
[
|
|
2095
2119
|
"docker-compose build web",
|
|
2096
|
-
"docker run -v /
|
|
2120
|
+
"docker run -v #{@qainit_folder}/project/projects/activia/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh activia_web \
|
|
2097
2121
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
2098
2122
|
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
|
2099
2123
|
mix local.hex --force && mix hex.info && \
|
|
@@ -2122,7 +2146,8 @@ class Release
|
|
|
2122
2146
|
|
|
2123
2147
|
if @qainit
|
|
2124
2148
|
execute_command 'pwd && ls -l'
|
|
2125
|
-
artifact_path = Dir.glob("
|
|
2149
|
+
artifact_path = Dir.glob("_build/qa/rel/activia/releases/*/activia.tar.gz").first
|
|
2150
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/activia/_build/qa/rel/activia/releases/*/activia.tar.gz").first
|
|
2126
2151
|
else
|
|
2127
2152
|
artifact_path = Dir.glob("_build/qa/rel/activia/releases/*/activia.tar.gz").first
|
|
2128
2153
|
end
|
|
@@ -2143,10 +2168,11 @@ class Release
|
|
|
2143
2168
|
if @qainit
|
|
2144
2169
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2145
2170
|
exec_step 'prepare-docker-compose --directory bolla && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2171
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/bolla/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bolla_web \
|
|
2146
2172
|
[
|
|
2147
2173
|
"pwd && cat docker-compose.yml",
|
|
2148
2174
|
"docker-compose build web",
|
|
2149
|
-
"docker run -v /
|
|
2175
|
+
"docker run -v #{@qainit_folder}/project/projects/bolla/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bolla_web \
|
|
2150
2176
|
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2151
2177
|
mix deps.get && mix compile && mix deps.compile && \
|
|
2152
2178
|
rm -rf _build/qa/rel/ && \
|
|
@@ -2169,7 +2195,8 @@ class Release
|
|
|
2169
2195
|
|
|
2170
2196
|
if @qainit
|
|
2171
2197
|
execute_command 'pwd && ls -l'
|
|
2172
|
-
artifact_path = Dir.glob("
|
|
2198
|
+
artifact_path = Dir.glob("_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
|
|
2199
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/bolla/_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
|
|
2173
2200
|
else
|
|
2174
2201
|
artifact_path = Dir.glob("_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
|
|
2175
2202
|
end
|
|
@@ -2206,10 +2233,11 @@ class Release
|
|
|
2206
2233
|
if @qainit
|
|
2207
2234
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2208
2235
|
exec_step 'prepare-docker-compose --directory borat && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2236
|
+
# "docker run -v /var/cache/ci/primait/qainit/master/project/projects/borat/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
|
|
2209
2237
|
[
|
|
2210
2238
|
"pwd && cat docker-compose.yml",
|
|
2211
2239
|
"docker-compose build backend",
|
|
2212
|
-
"docker run -v /
|
|
2240
|
+
"docker run -v #{@qainit_folder}/project/projects/borat/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
|
|
2213
2241
|
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
|
2214
2242
|
sed -i \"s/backoffice-legacy-qa-host/#{backoffice_qa_host}/g\" config/qa.exs && \
|
|
2215
2243
|
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
|
@@ -2256,7 +2284,8 @@ class Release
|
|
|
2256
2284
|
|
|
2257
2285
|
if @qainit
|
|
2258
2286
|
execute_command 'pwd && ls -l'
|
|
2259
|
-
artifact_path = Dir.glob("
|
|
2287
|
+
artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
|
2288
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
|
2260
2289
|
else
|
|
2261
2290
|
artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
|
2262
2291
|
end
|
|
@@ -2309,11 +2338,11 @@ class Release
|
|
|
2309
2338
|
if @qainit
|
|
2310
2339
|
# artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
|
2311
2340
|
execute_command 'pwd && ls -l'
|
|
2312
|
-
execute_command 'ls -l /var/cache/ci'
|
|
2313
|
-
execute_command 'ls -l /var/cache/ci/project'
|
|
2314
|
-
execute_command 'ls -l /var/cache/ci/project/projects'
|
|
2315
|
-
execute_command 'ls -l /var/cache/ci/project/projects/backoffice'
|
|
2316
|
-
execute_command 'sudo cd /var/cache/ci/project/projects/backoffice'
|
|
2341
|
+
# execute_command 'ls -l /var/cache/ci'
|
|
2342
|
+
# execute_command 'ls -l /var/cache/ci/project'
|
|
2343
|
+
# execute_command 'ls -l /var/cache/ci/project/projects'
|
|
2344
|
+
# execute_command 'ls -l /var/cache/ci/project/projects/backoffice'
|
|
2345
|
+
# execute_command 'sudo cd /var/cache/ci/project/projects/backoffice'
|
|
2317
2346
|
end
|
|
2318
2347
|
artifact_path = '/tmp/backoffice.zip'
|
|
2319
2348
|
exec_step "rm -f #{artifact_path} && zip -9 -r #{artifact_path} bin/"
|