prima-twig 0.53.38 → 0.53.50
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 +145 -131
- data/bin/twig-update-ami +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c12738d93304afa452000cbc475a081530a8c5aae39a21f92111c9e132eb1ec
|
4
|
+
data.tar.gz: 9ab58ab1d22adcf26b780b4d7aa59609246b8c3655a246431bbef6de21c2c4a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b35e633ca8a9ad71424ada56795e82dea98f20bccfa4248b0afb3c4c19082556352995034aed0a01393302444c83bb8d02e7f33e13acc0e7bc495ed1e82e2cc
|
7
|
+
data.tar.gz: 1b850e959bf2e40f33d26491918d01c6ac4d9be04ebf6e531c4454b305914ff998edb242a96cb7bcfcddf4e12bc558a0be639b99568b3d762ba419a59a594e66
|
data/bin/twig-feature
CHANGED
@@ -488,9 +488,16 @@ class Release
|
|
488
488
|
`git checkout -b #{branch_name}`
|
489
489
|
end
|
490
490
|
|
491
|
+
branches = ''
|
491
492
|
@git_branch = branch_name
|
492
493
|
|
493
|
-
|
494
|
+
@projects.each_key do |project_key|
|
495
|
+
if @projects[project_key][:revision]
|
496
|
+
branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}\n"
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
File.open('branch_names', 'w') { |file| file.write(branches) }
|
494
501
|
|
495
502
|
`git add projects && \
|
496
503
|
git add branch_names && \
|
@@ -519,7 +526,7 @@ class Release
|
|
519
526
|
# così recupero le informazioni sul branch, poi vado a scrivere il file branch_names con una sola riga
|
520
527
|
branch = "#{project}:#{project_definition[:name]}:#{project_definition[:revision]}:#{project_definition[:default_branch]}"
|
521
528
|
|
522
|
-
File.open('branch_names', 'w') { |file| file.write(
|
529
|
+
File.open('branch_names', 'w') { |file| file.write(branch) }
|
523
530
|
|
524
531
|
`git add projects && \
|
525
532
|
git add branch_names && \
|
@@ -552,19 +559,23 @@ class Release
|
|
552
559
|
# aggiornare il commit (revision a cui fa riferimento)
|
553
560
|
|
554
561
|
# leggo il file branch_names / recupero i nomi dei branch / riscrivo tutto
|
555
|
-
projects = ''
|
556
562
|
File.open('branch_names', 'r') do |file|
|
557
563
|
file.each_line do |line|
|
558
|
-
|
564
|
+
project = line.split(':')
|
565
|
+
@projects[project[0]] = select_branch_to_deploy(project[0], project[1])
|
566
|
+
@projects[project[0]][:default_branch] = project[3]
|
559
567
|
end
|
560
568
|
end
|
561
569
|
|
562
|
-
|
563
|
-
|
564
|
-
|
570
|
+
branches = ''
|
571
|
+
|
572
|
+
@projects.each_key do |project_key|
|
573
|
+
if @projects[project_key][:revision]
|
574
|
+
branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}"
|
575
|
+
end
|
565
576
|
end
|
566
577
|
|
567
|
-
File.open('branch_names', 'w') { |file| file.write(
|
578
|
+
File.open('branch_names', 'w') { |file| file.write(branches) }
|
568
579
|
|
569
580
|
if `git log -1` =~ /minimal_/
|
570
581
|
`git commit -am 'minimal_update'`
|
@@ -660,18 +671,16 @@ class Release
|
|
660
671
|
end
|
661
672
|
|
662
673
|
def qainit_read_config!(action)
|
663
|
-
projects = ''
|
664
|
-
|
665
674
|
File.open('branch_names', 'r') do |file|
|
666
675
|
file.each_line do |line|
|
667
|
-
|
676
|
+
project = line.gsub("\n", '').split(':')
|
677
|
+
if project[3] == 'true'
|
678
|
+
@projects[project[0]] = {:name=> project[1], :revision=> project[2], :default_branch=> true}
|
679
|
+
elsif project[3] == 'false'
|
680
|
+
@projects[project[0]] = {:name=> project[1], :revision=> project[2], :default_branch=> false}
|
681
|
+
end
|
668
682
|
end
|
669
683
|
end
|
670
|
-
|
671
|
-
projects.each do |key, project|
|
672
|
-
@projects[key] = project
|
673
|
-
end
|
674
|
-
|
675
684
|
get_s3_config_files
|
676
685
|
@qainit = true
|
677
686
|
case action
|
@@ -712,9 +721,9 @@ class Release
|
|
712
721
|
@ami_id = get_ami_id("ecs-fleet-allinone-staging")
|
713
722
|
project = ''
|
714
723
|
@projects.each_key do |project_key|
|
715
|
-
if @projects[project_key][
|
724
|
+
if @projects[project_key][:revision]
|
716
725
|
project = project_key
|
717
|
-
git_checkout_version(project_key, @projects[project_key][
|
726
|
+
git_checkout_version(project_key, @projects[project_key][:revision])
|
718
727
|
end
|
719
728
|
end
|
720
729
|
deploy_id = get_deploy_id
|
@@ -729,7 +738,7 @@ class Release
|
|
729
738
|
},
|
730
739
|
{
|
731
740
|
key: project,
|
732
|
-
value: @projects[project][
|
741
|
+
value: @projects[project][:name]
|
733
742
|
},
|
734
743
|
{
|
735
744
|
key: "hostname_pattern_priority",
|
@@ -762,8 +771,8 @@ class Release
|
|
762
771
|
create_asg_stack(asg_stack_name, tags) unless stack_exists?(asg_stack_name)
|
763
772
|
|
764
773
|
deploy_id = get_deploy_id
|
765
|
-
create_pyxis_artifact(@projects["pyxis-npm"][
|
766
|
-
create_prima_artifact(@projects["prima"][
|
774
|
+
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id)
|
775
|
+
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
|
767
776
|
|
768
777
|
wait_for_stack_ready(stack_name_alb) unless stack_ready?(stack_name_alb)
|
769
778
|
wait_for_stack_ready(stack_name_alb_ws) unless stack_ready?(stack_name_alb_ws)
|
@@ -789,7 +798,7 @@ class Release
|
|
789
798
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
790
799
|
|
791
800
|
stack_name_web = "ecs-task-web-qa-#{deploy_id}"
|
792
|
-
git_checkout_version('prima', @projects["prima"][
|
801
|
+
git_checkout_version('prima', @projects["prima"][:revision])
|
793
802
|
stack_body = IO.read('projects/prima/app/cloudformation/tasks/web.yml')
|
794
803
|
parameters = [
|
795
804
|
{
|
@@ -798,7 +807,7 @@ class Release
|
|
798
807
|
},
|
799
808
|
{
|
800
809
|
parameter_key: "ReleaseVersion",
|
801
|
-
parameter_value: "#{@projects["prima"][
|
810
|
+
parameter_value: "#{@projects["prima"][:revision]}"
|
802
811
|
},
|
803
812
|
{
|
804
813
|
parameter_key: "TaskDesiredCount",
|
@@ -845,13 +854,17 @@ class Release
|
|
845
854
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
846
855
|
},
|
847
856
|
{
|
848
|
-
parameter_key: "
|
857
|
+
parameter_key: "FePrimaDomain",
|
849
858
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
859
|
+
},
|
860
|
+
{
|
861
|
+
parameter_key: "HostnamePattern",
|
862
|
+
parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
|
850
863
|
}
|
851
864
|
]
|
852
865
|
if stack_exists?(stack_name_web)
|
853
866
|
cur_version = get_currently_deployed_version(stack_name_web)
|
854
|
-
update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][
|
867
|
+
update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
|
855
868
|
else
|
856
869
|
create_stack(stack_name_web, stack_body, parameters, tags, @cf_role)
|
857
870
|
end
|
@@ -878,8 +891,8 @@ class Release
|
|
878
891
|
stack_name_alb_ws = 'ecs-alb-ws-public-qa-' + deploy_id[0..5]
|
879
892
|
unless @qainit
|
880
893
|
@projects.each_key do |project_key|
|
881
|
-
if @projects[project_key][
|
882
|
-
git_checkout_version(project_key, @projects[project_key][
|
894
|
+
if @projects[project_key][:revision]
|
895
|
+
git_checkout_version(project_key, @projects[project_key][:revision])
|
883
896
|
end
|
884
897
|
end
|
885
898
|
end
|
@@ -899,11 +912,11 @@ class Release
|
|
899
912
|
@projects.each do |key, value|
|
900
913
|
case key.to_s
|
901
914
|
when 'crash'
|
902
|
-
tags << { key: 'crash', value: @projects['crash'][
|
915
|
+
tags << { key: 'crash', value: @projects['crash'][:name] } if deploy_crash?
|
903
916
|
when 'starsky', 'hutch'
|
904
|
-
tags << { key: key.to_s, value: @projects[key.to_s][
|
917
|
+
tags << { key: key.to_s, value: @projects[key.to_s][:name] } if deploy_starsky_hutch?
|
905
918
|
else
|
906
|
-
tags << { key: key, value: value[
|
919
|
+
tags << { key: key, value: value[:name] }
|
907
920
|
end
|
908
921
|
end
|
909
922
|
|
@@ -944,30 +957,30 @@ class Release
|
|
944
957
|
|
945
958
|
output "check pyxis \n".yellow
|
946
959
|
|
947
|
-
create_pyxis_artifact(@projects["pyxis-npm"][
|
948
|
-
create_prima_artifact(@projects["prima"][
|
960
|
+
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id) unless @projects["pyxis-npm"].nil? # deve essere creato prima di quello di prima, per avere la versione
|
961
|
+
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
|
949
962
|
# l'artefatto di prima viene creato sempre (puntamenti all'ambiente compilati nel js) e richiede molto più di 4 minuti
|
950
963
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db) # dovrebbe essere istantaneo
|
951
964
|
db_task = ''
|
952
965
|
db_task = import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-route53-qa-#{deploy_id}") # import asincrono dei dati
|
953
966
|
|
954
|
-
create_crash_artifact(@projects['crash'][
|
955
|
-
create_urania_artifact(@projects["urania"][
|
956
|
-
create_roger_artifact(@projects["roger"][
|
957
|
-
create_ermes_artifact(@projects["ermes"][
|
958
|
-
create_bburago_artifact(@projects["bburago"][
|
959
|
-
create_hal9000_artifact(@projects["hal9000"][
|
960
|
-
create_rachele_artifact(@projects["rachele"][
|
961
|
-
create_fidaty_artifact(@projects["fidaty"][
|
962
|
-
create_peano_artifact(@projects["peano"][
|
963
|
-
create_rogoreport_artifact(@projects["rogoreport"][
|
964
|
-
create_assange_artifact(@projects["assange"][
|
965
|
-
create_borat_artifact(@projects["borat"][
|
966
|
-
create_activia_artifact(@projects["activia"][
|
967
|
-
create_leftorium_artifact(@projects["leftorium"][
|
968
|
-
create_skynet_artifact(@projects["skynet"][
|
969
|
-
create_starsky_artifact(@projects["starsky"][
|
970
|
-
create_hutch_artifact(@projects["hutch"][
|
967
|
+
create_crash_artifact(@projects['crash'][:revision], deploy_id) unless !deploy_crash? || artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['crash'][:revision]}-qa.tar.gz")
|
968
|
+
create_urania_artifact(@projects["urania"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"][:revision]}-qa.tar.gz")
|
969
|
+
create_roger_artifact(@projects["roger"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/roger/#{@projects["roger"][:revision]}-qa.tar.gz")
|
970
|
+
create_ermes_artifact(@projects["ermes"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-qa.tar.gz")
|
971
|
+
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
972
|
+
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
973
|
+
create_rachele_artifact(@projects["rachele"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rachele/#{@projects["rachele"][:revision]}-qa.tar.gz")
|
974
|
+
create_fidaty_artifact(@projects["fidaty"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-qa.tar.gz")
|
975
|
+
create_peano_artifact(@projects["peano"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-qa.tar.gz")
|
976
|
+
create_rogoreport_artifact(@projects["rogoreport"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport-#{@projects["rogoreport"][:revision]}-qa.tar.gz")
|
977
|
+
create_assange_artifact(@projects["assange"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-qa.tar.gz")
|
978
|
+
create_borat_artifact(@projects["borat"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-qa.tar.gz")
|
979
|
+
create_activia_artifact(@projects["activia"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-qa.tar.gz")
|
980
|
+
create_leftorium_artifact(@projects["leftorium"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/leftorium/#{@projects["leftorium"][:revision]}-qa.tar.gz")
|
981
|
+
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
982
|
+
create_starsky_artifact(@projects["starsky"][:revision]) unless !deploy_starsky_hutch? || artifact_exists?('prima-artifacts-encrypted', "microservices/starsky/#{@projects["starsky"][:revision]}-qa.tar.gz")
|
983
|
+
create_hutch_artifact(@projects["hutch"][:revision]) unless !deploy_starsky_hutch? || artifact_exists?('prima-artifacts-encrypted', "microservices/hutch/#{@projects["hutch"][:revision]}-qa.tar.gz")
|
971
984
|
|
972
985
|
wait_for_db_import(db_task) unless stack_exists?("ecs-route53-qa-#{deploy_id}") # dovrebbe essere istantaneo
|
973
986
|
|
@@ -1061,7 +1074,7 @@ class Release
|
|
1061
1074
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
1062
1075
|
|
1063
1076
|
stack_name_skynet = "ecs-task-skynet-qa-#{deploy_id}"
|
1064
|
-
git_checkout_version('skynet', @projects["skynet"][
|
1077
|
+
git_checkout_version('skynet', @projects["skynet"][:revision])
|
1065
1078
|
stack_body = File.read('projects/skynet/deploy/task.yml')
|
1066
1079
|
parameters = [
|
1067
1080
|
{
|
@@ -1070,7 +1083,7 @@ class Release
|
|
1070
1083
|
},
|
1071
1084
|
{
|
1072
1085
|
parameter_key: "ReleaseVersion",
|
1073
|
-
parameter_value: @projects["skynet"][
|
1086
|
+
parameter_value: @projects["skynet"][:revision]
|
1074
1087
|
},
|
1075
1088
|
{
|
1076
1089
|
parameter_key: "TaskDesiredCount",
|
@@ -1091,13 +1104,13 @@ class Release
|
|
1091
1104
|
]
|
1092
1105
|
if stack_exists?(stack_name_skynet)
|
1093
1106
|
cur_version = get_currently_deployed_version(stack_name_skynet)
|
1094
|
-
update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"][
|
1107
|
+
update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"][:revision])
|
1095
1108
|
else
|
1096
1109
|
create_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role)
|
1097
1110
|
end
|
1098
1111
|
|
1099
1112
|
stack_name_urania = "ecs-task-urania-qa-#{deploy_id}"
|
1100
|
-
git_checkout_version('urania', @projects["urania"][
|
1113
|
+
git_checkout_version('urania', @projects["urania"][:revision])
|
1101
1114
|
stack_body = File.read('projects/urania/deploy/task.yml')
|
1102
1115
|
parameters = [
|
1103
1116
|
{
|
@@ -1106,7 +1119,7 @@ class Release
|
|
1106
1119
|
},
|
1107
1120
|
{
|
1108
1121
|
parameter_key: "ReleaseVersion",
|
1109
|
-
parameter_value: @projects["urania"][
|
1122
|
+
parameter_value: @projects["urania"][:revision]
|
1110
1123
|
},
|
1111
1124
|
{
|
1112
1125
|
parameter_key: "TaskDesiredCount",
|
@@ -1127,13 +1140,13 @@ class Release
|
|
1127
1140
|
]
|
1128
1141
|
if stack_exists?(stack_name_urania)
|
1129
1142
|
cur_version = get_currently_deployed_version(stack_name_urania)
|
1130
|
-
update_stack(stack_name_urania, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["urania"][
|
1143
|
+
update_stack(stack_name_urania, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["urania"][:revision])
|
1131
1144
|
else
|
1132
1145
|
create_stack(stack_name_urania, stack_body, parameters, tags, @cf_role)
|
1133
1146
|
end
|
1134
1147
|
|
1135
1148
|
stack_name_ermes = "ecs-task-ermes-qa-#{deploy_id}"
|
1136
|
-
git_checkout_version('ermes', @projects["ermes"][
|
1149
|
+
git_checkout_version('ermes', @projects["ermes"][:revision])
|
1137
1150
|
stack_body = File.read('projects/ermes/deploy/task.yml')
|
1138
1151
|
parameters = [
|
1139
1152
|
{
|
@@ -1142,7 +1155,7 @@ class Release
|
|
1142
1155
|
},
|
1143
1156
|
{
|
1144
1157
|
parameter_key: "ReleaseVersion",
|
1145
|
-
parameter_value: "#{@projects['ermes'][
|
1158
|
+
parameter_value: "#{@projects['ermes'][:revision]}"
|
1146
1159
|
},
|
1147
1160
|
{
|
1148
1161
|
parameter_key: "TaskDesiredCount",
|
@@ -1171,13 +1184,13 @@ class Release
|
|
1171
1184
|
]
|
1172
1185
|
if stack_exists?(stack_name_ermes)
|
1173
1186
|
cur_version = get_currently_deployed_version(stack_name_ermes)
|
1174
|
-
update_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["ermes"][
|
1187
|
+
update_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["ermes"][:revision])
|
1175
1188
|
else
|
1176
1189
|
create_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role)
|
1177
1190
|
end
|
1178
1191
|
|
1179
1192
|
stack_name_bburago = "ecs-task-bburago-qa-#{deploy_id}"
|
1180
|
-
git_checkout_version('bburago', @projects["bburago"][
|
1193
|
+
git_checkout_version('bburago', @projects["bburago"][:revision])
|
1181
1194
|
stack_body = File.read('projects/bburago/deploy/task.yml')
|
1182
1195
|
parameters = [
|
1183
1196
|
{
|
@@ -1186,7 +1199,7 @@ class Release
|
|
1186
1199
|
},
|
1187
1200
|
{
|
1188
1201
|
parameter_key: "ReleaseVersion",
|
1189
|
-
parameter_value: @projects["bburago"][
|
1202
|
+
parameter_value: @projects["bburago"][:revision]
|
1190
1203
|
},
|
1191
1204
|
{
|
1192
1205
|
parameter_key: "ECSClusterName",
|
@@ -1207,13 +1220,13 @@ class Release
|
|
1207
1220
|
]
|
1208
1221
|
if stack_exists?(stack_name_bburago)
|
1209
1222
|
cur_version = get_currently_deployed_version(stack_name_bburago)
|
1210
|
-
update_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["bburago"][
|
1223
|
+
update_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["bburago"][:revision])
|
1211
1224
|
else
|
1212
1225
|
create_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role)
|
1213
1226
|
end
|
1214
1227
|
|
1215
1228
|
stack_name_hal9000 = "ecs-task-hal9000-qa-#{deploy_id}"
|
1216
|
-
git_checkout_version('hal9000', @projects["hal9000"][
|
1229
|
+
git_checkout_version('hal9000', @projects["hal9000"][:revision])
|
1217
1230
|
stack_body = File.read('projects/hal9000/deploy/task.yml')
|
1218
1231
|
parameters = [
|
1219
1232
|
{
|
@@ -1222,7 +1235,7 @@ class Release
|
|
1222
1235
|
},
|
1223
1236
|
{
|
1224
1237
|
parameter_key: "ReleaseVersion",
|
1225
|
-
parameter_value: @projects["hal9000"][
|
1238
|
+
parameter_value: @projects["hal9000"][:revision]
|
1226
1239
|
},
|
1227
1240
|
{
|
1228
1241
|
parameter_key: "ECSClusterName",
|
@@ -1243,13 +1256,13 @@ class Release
|
|
1243
1256
|
]
|
1244
1257
|
if stack_exists?(stack_name_hal9000)
|
1245
1258
|
cur_version = get_currently_deployed_version(stack_name_hal9000)
|
1246
|
-
update_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hal9000"][
|
1259
|
+
update_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hal9000"][:revision])
|
1247
1260
|
else
|
1248
1261
|
create_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role)
|
1249
1262
|
end
|
1250
1263
|
|
1251
1264
|
stack_name_fidaty = "ecs-task-fidaty-qa-#{deploy_id}"
|
1252
|
-
git_checkout_version('fidaty', @projects["fidaty"][
|
1265
|
+
git_checkout_version('fidaty', @projects["fidaty"][:revision])
|
1253
1266
|
stack_body = File.read('projects/fidaty/deploy/task.yml')
|
1254
1267
|
parameters = [
|
1255
1268
|
{
|
@@ -1258,7 +1271,7 @@ class Release
|
|
1258
1271
|
},
|
1259
1272
|
{
|
1260
1273
|
parameter_key: "ReleaseVersion",
|
1261
|
-
parameter_value: "#{@projects["fidaty"][
|
1274
|
+
parameter_value: "#{@projects["fidaty"][:revision]}"
|
1262
1275
|
},
|
1263
1276
|
{
|
1264
1277
|
parameter_key: "ECSClusterName",
|
@@ -1283,13 +1296,13 @@ class Release
|
|
1283
1296
|
]
|
1284
1297
|
if stack_exists?(stack_name_fidaty)
|
1285
1298
|
cur_version = get_currently_deployed_version(stack_name_fidaty)
|
1286
|
-
update_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["fidaty"][
|
1299
|
+
update_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["fidaty"][:revision])
|
1287
1300
|
else
|
1288
1301
|
create_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role)
|
1289
1302
|
end
|
1290
1303
|
|
1291
1304
|
stack_name_peano = "ecs-task-peano-qa-#{deploy_id}"
|
1292
|
-
git_checkout_version('peano', @projects["peano"][
|
1305
|
+
git_checkout_version('peano', @projects["peano"][:revision])
|
1293
1306
|
stack_body = File.read('projects/peano/deploy/task.yml')
|
1294
1307
|
parameters = [
|
1295
1308
|
{
|
@@ -1298,7 +1311,7 @@ class Release
|
|
1298
1311
|
},
|
1299
1312
|
{
|
1300
1313
|
parameter_key: "ReleaseVersion",
|
1301
|
-
parameter_value: "#{@projects['peano'][
|
1314
|
+
parameter_value: "#{@projects['peano'][:revision]}"
|
1302
1315
|
},
|
1303
1316
|
{
|
1304
1317
|
parameter_key: "ECSClusterName",
|
@@ -1327,13 +1340,13 @@ class Release
|
|
1327
1340
|
]
|
1328
1341
|
if stack_exists?(stack_name_peano)
|
1329
1342
|
cur_version = get_currently_deployed_version(stack_name_peano)
|
1330
|
-
update_stack(stack_name_peano, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["peano"][
|
1343
|
+
update_stack(stack_name_peano, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["peano"][:revision])
|
1331
1344
|
else
|
1332
1345
|
create_stack(stack_name_peano, stack_body, parameters, tags, @cf_role)
|
1333
1346
|
end
|
1334
1347
|
|
1335
1348
|
stack_name_rogoreport = "ecs-task-rogoreport-qa-#{deploy_id}"
|
1336
|
-
git_checkout_version('rogoreport', @projects["rogoreport"][
|
1349
|
+
git_checkout_version('rogoreport', @projects["rogoreport"][:revision])
|
1337
1350
|
stack_body = IO.read('projects/rogoreport/deploy/task.yml')
|
1338
1351
|
parameters = [
|
1339
1352
|
{
|
@@ -1342,7 +1355,7 @@ class Release
|
|
1342
1355
|
},
|
1343
1356
|
{
|
1344
1357
|
parameter_key: "ReleaseVersion",
|
1345
|
-
parameter_value: "#{@projects["rogoreport"][
|
1358
|
+
parameter_value: "#{@projects["rogoreport"][:revision]}"
|
1346
1359
|
},
|
1347
1360
|
{
|
1348
1361
|
parameter_key: "ReleaseName",
|
@@ -1355,13 +1368,13 @@ class Release
|
|
1355
1368
|
]
|
1356
1369
|
if stack_exists?(stack_name_rogoreport)
|
1357
1370
|
cur_version = get_currently_deployed_version(stack_name_rogoreport)
|
1358
|
-
update_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rogoreport"][
|
1371
|
+
update_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rogoreport"][:revision])
|
1359
1372
|
else
|
1360
1373
|
create_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role)
|
1361
1374
|
end
|
1362
1375
|
|
1363
1376
|
stack_name_assange = "ecs-task-assange-qa-#{deploy_id}"
|
1364
|
-
git_checkout_version('assange', @projects["assange"][
|
1377
|
+
git_checkout_version('assange', @projects["assange"][:revision])
|
1365
1378
|
stack_body = IO.read('projects/assange/deploy/task.yml')
|
1366
1379
|
parameters = [
|
1367
1380
|
{
|
@@ -1370,7 +1383,7 @@ class Release
|
|
1370
1383
|
},
|
1371
1384
|
{
|
1372
1385
|
parameter_key: "ReleaseVersion",
|
1373
|
-
parameter_value: "#{@projects["assange"][
|
1386
|
+
parameter_value: "#{@projects["assange"][:revision]}"
|
1374
1387
|
},
|
1375
1388
|
{
|
1376
1389
|
parameter_key: "ECSClusterName",
|
@@ -1407,13 +1420,13 @@ class Release
|
|
1407
1420
|
]
|
1408
1421
|
if stack_exists?(stack_name_assange)
|
1409
1422
|
cur_version = get_currently_deployed_version(stack_name_assange)
|
1410
|
-
update_stack(stack_name_assange, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["assange"][
|
1423
|
+
update_stack(stack_name_assange, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["assange"][:revision])
|
1411
1424
|
else
|
1412
1425
|
create_stack(stack_name_assange, stack_body, parameters, tags, @cf_role)
|
1413
1426
|
end
|
1414
1427
|
|
1415
1428
|
stack_name_leftorium = "ecs-task-leftorium-qa-#{deploy_id}"
|
1416
|
-
git_checkout_version('leftorium', @projects["leftorium"][
|
1429
|
+
git_checkout_version('leftorium', @projects["leftorium"][:revision])
|
1417
1430
|
stack_body = File.read('projects/leftorium/deploy/task.yml')
|
1418
1431
|
parameters = [
|
1419
1432
|
{
|
@@ -1422,7 +1435,7 @@ class Release
|
|
1422
1435
|
},
|
1423
1436
|
{
|
1424
1437
|
parameter_key: "ReleaseVersion",
|
1425
|
-
parameter_value: "#{@projects["leftorium"][
|
1438
|
+
parameter_value: "#{@projects["leftorium"][:revision]}"
|
1426
1439
|
},
|
1427
1440
|
{
|
1428
1441
|
parameter_key: "ECSClusterName",
|
@@ -1443,13 +1456,13 @@ class Release
|
|
1443
1456
|
]
|
1444
1457
|
if stack_exists?(stack_name_leftorium)
|
1445
1458
|
cur_version = get_currently_deployed_version(stack_name_leftorium)
|
1446
|
-
update_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["leftorium"][
|
1459
|
+
update_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["leftorium"][:revision])
|
1447
1460
|
else
|
1448
1461
|
create_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role)
|
1449
1462
|
end
|
1450
1463
|
|
1451
1464
|
stack_name_rachele = "ecs-task-rachele-qa-#{deploy_id}"
|
1452
|
-
git_checkout_version('rachele', @projects["rachele"][
|
1465
|
+
git_checkout_version('rachele', @projects["rachele"][:revision])
|
1453
1466
|
stack_body = File.read('projects/rachele/deploy/task.yml')
|
1454
1467
|
parameters = [
|
1455
1468
|
{
|
@@ -1458,7 +1471,7 @@ class Release
|
|
1458
1471
|
},
|
1459
1472
|
{
|
1460
1473
|
parameter_key: "ReleaseVersion",
|
1461
|
-
parameter_value: "#{@projects["rachele"][
|
1474
|
+
parameter_value: "#{@projects["rachele"][:revision]}"
|
1462
1475
|
},
|
1463
1476
|
{
|
1464
1477
|
parameter_key: "ECSClusterName",
|
@@ -1483,13 +1496,13 @@ class Release
|
|
1483
1496
|
]
|
1484
1497
|
if stack_exists?(stack_name_rachele)
|
1485
1498
|
cur_version = get_currently_deployed_version(stack_name_rachele)
|
1486
|
-
update_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rachele"][
|
1499
|
+
update_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rachele"][:revision])
|
1487
1500
|
else
|
1488
1501
|
create_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role)
|
1489
1502
|
end
|
1490
1503
|
|
1491
1504
|
stack_name_borat = "ecs-task-borat-qa-#{deploy_id}"
|
1492
|
-
git_checkout_version('borat', @projects["borat"][
|
1505
|
+
git_checkout_version('borat', @projects["borat"][:revision])
|
1493
1506
|
stack_body = IO.read('projects/borat/deploy/task.yml')
|
1494
1507
|
parameters = [
|
1495
1508
|
{
|
@@ -1498,7 +1511,7 @@ class Release
|
|
1498
1511
|
},
|
1499
1512
|
{
|
1500
1513
|
parameter_key: "ReleaseVersion",
|
1501
|
-
parameter_value: "#{@projects["borat"][
|
1514
|
+
parameter_value: "#{@projects["borat"][:revision]}"
|
1502
1515
|
},
|
1503
1516
|
{
|
1504
1517
|
parameter_key: "ECSClusterName",
|
@@ -1543,13 +1556,13 @@ class Release
|
|
1543
1556
|
]
|
1544
1557
|
if stack_exists?(stack_name_borat)
|
1545
1558
|
cur_version = get_currently_deployed_version(stack_name_borat)
|
1546
|
-
update_stack(stack_name_borat, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["borat"][
|
1559
|
+
update_stack(stack_name_borat, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["borat"][:revision])
|
1547
1560
|
else
|
1548
1561
|
create_stack(stack_name_borat, stack_body, parameters, tags, @cf_role)
|
1549
1562
|
end
|
1550
1563
|
|
1551
1564
|
if deploy_crash?
|
1552
|
-
git_checkout_version('crash', @projects['crash'][
|
1565
|
+
git_checkout_version('crash', @projects['crash'][:revision])
|
1553
1566
|
stack_name_crash = "ecs-task-crash-qa-#{deploy_id}"
|
1554
1567
|
stack_body = IO.read('projects/crash/deploy/task.yml')
|
1555
1568
|
parameters = [
|
@@ -1559,7 +1572,7 @@ class Release
|
|
1559
1572
|
},
|
1560
1573
|
{
|
1561
1574
|
parameter_key: 'ReleaseVersion',
|
1562
|
-
parameter_value: "#{@projects['crash'][
|
1575
|
+
parameter_value: "#{@projects['crash'][:revision]}"
|
1563
1576
|
},
|
1564
1577
|
{
|
1565
1578
|
parameter_key: 'TaskDesiredCount',
|
@@ -1600,7 +1613,7 @@ class Release
|
|
1600
1613
|
]
|
1601
1614
|
if stack_exists?(stack_name_crash)
|
1602
1615
|
cur_version = get_currently_deployed_version(stack_name_crash)
|
1603
|
-
update_stack(stack_name_crash, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["crash"][
|
1616
|
+
update_stack(stack_name_crash, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["crash"][:revision])
|
1604
1617
|
else
|
1605
1618
|
create_stack(stack_name_crash, stack_body, parameters, tags, @cf_role)
|
1606
1619
|
end
|
@@ -1608,7 +1621,7 @@ class Release
|
|
1608
1621
|
|
1609
1622
|
if deploy_starsky_hutch?
|
1610
1623
|
stack_name_starsky = "ecs-task-starsky-qa-#{deploy_id}"
|
1611
|
-
git_checkout_version('starsky', @projects["starsky"][
|
1624
|
+
git_checkout_version('starsky', @projects["starsky"][:revision])
|
1612
1625
|
stack_body = IO.read('projects/starsky/deploy/task.yml')
|
1613
1626
|
parameters = [
|
1614
1627
|
{
|
@@ -1617,7 +1630,7 @@ class Release
|
|
1617
1630
|
},
|
1618
1631
|
{
|
1619
1632
|
parameter_key: "ReleaseVersion",
|
1620
|
-
parameter_value: "#{@projects["starsky"][
|
1633
|
+
parameter_value: "#{@projects["starsky"][:revision]}"
|
1621
1634
|
},
|
1622
1635
|
{
|
1623
1636
|
parameter_key: "TaskDesiredCount",
|
@@ -1646,14 +1659,14 @@ class Release
|
|
1646
1659
|
]
|
1647
1660
|
if stack_exists?(stack_name_starsky)
|
1648
1661
|
cur_version = get_currently_deployed_version(stack_name_starsky)
|
1649
|
-
update_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["starsky"][
|
1662
|
+
update_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["starsky"][:revision])
|
1650
1663
|
else
|
1651
1664
|
create_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role)
|
1652
1665
|
end
|
1653
1666
|
end
|
1654
1667
|
|
1655
1668
|
stack_name_activia = "ecs-task-activia-qa-#{deploy_id}"
|
1656
|
-
git_checkout_version('activia', @projects["activia"][
|
1669
|
+
git_checkout_version('activia', @projects["activia"][:revision])
|
1657
1670
|
stack_body = File.read('projects/activia/deploy/task.yml')
|
1658
1671
|
parameters = [
|
1659
1672
|
{
|
@@ -1662,7 +1675,7 @@ class Release
|
|
1662
1675
|
},
|
1663
1676
|
{
|
1664
1677
|
parameter_key: "ReleaseVersion",
|
1665
|
-
parameter_value: "#{@projects["activia"][
|
1678
|
+
parameter_value: "#{@projects["activia"][:revision]}"
|
1666
1679
|
},
|
1667
1680
|
{
|
1668
1681
|
parameter_key: "ECSClusterName",
|
@@ -1691,7 +1704,7 @@ class Release
|
|
1691
1704
|
]
|
1692
1705
|
if stack_exists?(stack_name_activia)
|
1693
1706
|
cur_version = get_currently_deployed_version(stack_name_activia)
|
1694
|
-
update_stack(stack_name_activia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["activia"][
|
1707
|
+
update_stack(stack_name_activia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["activia"][:revision])
|
1695
1708
|
else
|
1696
1709
|
create_stack(stack_name_activia, stack_body, parameters, tags, @cf_role)
|
1697
1710
|
end
|
@@ -1707,7 +1720,7 @@ class Release
|
|
1707
1720
|
wait_for_stack_ready(stack_name_rachele) unless stack_ready?(stack_name_rachele)
|
1708
1721
|
|
1709
1722
|
stack_name_web = "ecs-task-web-qa-#{deploy_id}"
|
1710
|
-
git_checkout_version('prima', @projects["prima"][
|
1723
|
+
git_checkout_version('prima', @projects["prima"][:revision])
|
1711
1724
|
stack_body = IO.read('projects/prima/app/cloudformation/tasks/web.yml')
|
1712
1725
|
parameters = [
|
1713
1726
|
{
|
@@ -1716,7 +1729,7 @@ class Release
|
|
1716
1729
|
},
|
1717
1730
|
{
|
1718
1731
|
parameter_key: "ReleaseVersion",
|
1719
|
-
parameter_value: "#{@projects["prima"][
|
1732
|
+
parameter_value: "#{@projects["prima"][:revision]}"
|
1720
1733
|
},
|
1721
1734
|
{
|
1722
1735
|
parameter_key: "TaskDesiredCount",
|
@@ -1763,19 +1776,23 @@ class Release
|
|
1763
1776
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
1764
1777
|
},
|
1765
1778
|
{
|
1766
|
-
parameter_key: "
|
1779
|
+
parameter_key: "FePrimaDomain",
|
1767
1780
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
1781
|
+
},
|
1782
|
+
{
|
1783
|
+
parameter_key: "HostnamePattern",
|
1784
|
+
parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
|
1768
1785
|
}
|
1769
1786
|
]
|
1770
1787
|
if stack_exists?(stack_name_web)
|
1771
1788
|
cur_version = get_currently_deployed_version(stack_name_web)
|
1772
|
-
update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][
|
1789
|
+
update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
|
1773
1790
|
else
|
1774
1791
|
create_stack(stack_name_web, stack_body, parameters, tags, @cf_role)
|
1775
1792
|
end
|
1776
1793
|
|
1777
1794
|
stack_name_consumer = "ecs-task-consumer-qa-#{deploy_id}"
|
1778
|
-
git_checkout_version('prima', @projects["prima"][
|
1795
|
+
git_checkout_version('prima', @projects["prima"][:revision])
|
1779
1796
|
stack_body = IO.read('projects/prima/app/cloudformation/tasks/consumer.yml')
|
1780
1797
|
parameters = [
|
1781
1798
|
{
|
@@ -1784,7 +1801,7 @@ class Release
|
|
1784
1801
|
},
|
1785
1802
|
{
|
1786
1803
|
parameter_key: "ReleaseVersion",
|
1787
|
-
parameter_value: "#{@projects["prima"][
|
1804
|
+
parameter_value: "#{@projects["prima"][:revision]}"
|
1788
1805
|
},
|
1789
1806
|
{
|
1790
1807
|
parameter_key: "ECSClusterName",
|
@@ -1806,6 +1823,10 @@ class Release
|
|
1806
1823
|
parameter_key: "WebHostname",
|
1807
1824
|
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
1808
1825
|
},
|
1826
|
+
{
|
1827
|
+
parameter_key: "FePrimaDomain",
|
1828
|
+
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
1829
|
+
},
|
1809
1830
|
{
|
1810
1831
|
parameter_key: "HostnamePattern",
|
1811
1832
|
parameter_value: "consumer-#{@dns_record_identifier}.qa.colaster.com"
|
@@ -1813,13 +1834,13 @@ class Release
|
|
1813
1834
|
]
|
1814
1835
|
if stack_exists?(stack_name_consumer)
|
1815
1836
|
cur_version = get_currently_deployed_version(stack_name_consumer)
|
1816
|
-
update_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][
|
1837
|
+
update_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
|
1817
1838
|
else
|
1818
1839
|
create_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role)
|
1819
1840
|
end
|
1820
1841
|
|
1821
1842
|
stack_name_roger = "ecs-task-roger-qa-#{deploy_id}"
|
1822
|
-
git_checkout_version('roger', @projects["roger"][
|
1843
|
+
git_checkout_version('roger', @projects["roger"][:revision])
|
1823
1844
|
stack_body = File.read('projects/roger/deploy/task.yml')
|
1824
1845
|
parameters = [
|
1825
1846
|
{
|
@@ -1828,7 +1849,7 @@ class Release
|
|
1828
1849
|
},
|
1829
1850
|
{
|
1830
1851
|
parameter_key: "ReleaseVersion",
|
1831
|
-
parameter_value: @projects["roger"][
|
1852
|
+
parameter_value: @projects["roger"][:revision]
|
1832
1853
|
},
|
1833
1854
|
{
|
1834
1855
|
parameter_key: "TaskDesiredCount",
|
@@ -1849,7 +1870,7 @@ class Release
|
|
1849
1870
|
]
|
1850
1871
|
if stack_exists?(stack_name_roger)
|
1851
1872
|
cur_version = get_currently_deployed_version(stack_name_roger)
|
1852
|
-
update_stack(stack_name_roger, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["roger"][
|
1873
|
+
update_stack(stack_name_roger, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["roger"][:revision])
|
1853
1874
|
else
|
1854
1875
|
create_stack(stack_name_roger, stack_body, parameters, tags, @cf_role)
|
1855
1876
|
end
|
@@ -1859,7 +1880,7 @@ class Release
|
|
1859
1880
|
wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !deploy_starsky_hutch?
|
1860
1881
|
|
1861
1882
|
stack_name_hutch = "ecs-task-hutch-qa-#{deploy_id}"
|
1862
|
-
git_checkout_version('hutch', @projects["hutch"][
|
1883
|
+
git_checkout_version('hutch', @projects["hutch"][:revision])
|
1863
1884
|
stack_body = File.read('projects/hutch/deploy/task.yml')
|
1864
1885
|
parameters = [
|
1865
1886
|
{
|
@@ -1868,7 +1889,7 @@ class Release
|
|
1868
1889
|
},
|
1869
1890
|
{
|
1870
1891
|
parameter_key: "ReleaseVersion",
|
1871
|
-
parameter_value: "#{@projects["hutch"][
|
1892
|
+
parameter_value: "#{@projects["hutch"][:revision]}"
|
1872
1893
|
},
|
1873
1894
|
{
|
1874
1895
|
parameter_key: "ALBShortName",
|
@@ -1897,7 +1918,7 @@ class Release
|
|
1897
1918
|
]
|
1898
1919
|
if stack_exists?(stack_name_hutch)
|
1899
1920
|
cur_version = get_currently_deployed_version(stack_name_hutch)
|
1900
|
-
update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"][
|
1921
|
+
update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"][:revision])
|
1901
1922
|
else
|
1902
1923
|
create_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role)
|
1903
1924
|
end
|
@@ -2292,28 +2313,23 @@ class Release
|
|
2292
2313
|
|
2293
2314
|
`mv docker-compose-ci.yml docker-compose.yml`
|
2294
2315
|
exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
|
2295
|
-
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
mix compile && mix release --env=qa'",
|
2313
|
-
'docker-compose down'
|
2314
|
-
].each do |cmd|
|
2315
|
-
execute_command cmd
|
2316
|
-
end
|
2316
|
+
[
|
2317
|
+
'docker-compose build web',
|
2318
|
+
"docker-compose run -w $PWD -u root -e MIX_ENV=qa -e ENV_HASH=#{deploy_id} web \
|
2319
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2320
|
+
mix deps.get && \
|
2321
|
+
cd assets && \
|
2322
|
+
yarn --cache-folder ~/.cache/yarn && \
|
2323
|
+
NODE_ENV=production sysconfcpus -n 1 yarn run build && \
|
2324
|
+
cd ../ && \
|
2325
|
+
mix release.clean --implode --no-confirm && \
|
2326
|
+
mix phx.digest && \
|
2327
|
+
mix deps.clean --all && \
|
2328
|
+
mix deps.get && \
|
2329
|
+
mix compile && mix release --env=qa'",
|
2330
|
+
'docker-compose down'
|
2331
|
+
].each do |cmd|
|
2332
|
+
execute_command cmd
|
2317
2333
|
end
|
2318
2334
|
|
2319
2335
|
cleanup_containers
|
@@ -2352,7 +2368,6 @@ class Release
|
|
2352
2368
|
MIX_ENV=dev mix compile.sms && \
|
2353
2369
|
MIX_ENV=dev mix compile.html && \
|
2354
2370
|
MIX_ENV=dev mix compile.heml && \
|
2355
|
-
MIX_ENV=dev mix compile.app_notification && \
|
2356
2371
|
rm -rf _build/qa/rel/ && \
|
2357
2372
|
mix release --env=qa'"
|
2358
2373
|
].each do |cmd|
|
@@ -2440,7 +2455,6 @@ class Release
|
|
2440
2455
|
|
2441
2456
|
decrypt_secrets() unless File.exist?('config/secrets.yml')
|
2442
2457
|
|
2443
|
-
exec_step 'git submodule update'
|
2444
2458
|
exec_step 'cp docker-compose-ci.yml docker-compose.yml'
|
2445
2459
|
exec_step 'prepare-docker-compose --directory hutch && cp docker-compose-qainit.yml docker-compose.yml'
|
2446
2460
|
exec_step "sed s/qa_deploy_id/#{get_deploy_id}/ .env.dist.qa"
|
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` -
|
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"
|
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.50
|
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-04 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: aws-sdk
|
@@ -214,7 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
|
217
|
+
rubyforge_project:
|
218
|
+
rubygems_version: 2.7.8
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
221
|
summary: The Prima twig toolbelt
|