prima-twig 0.58.501 → 0.58.502
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-build +48 -48
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1c8b3e0492429ad23af7d682f0dd5387f568a621b81eb11bf7ded11070c8f13
|
|
4
|
+
data.tar.gz: 2c29439b5681aedbb802503d4b1590e82d0400be390c00e45d1c5324d45c4aa4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5248e152da49c81f5d5ecdddd07ed22d1f658263f858d8f010531bce1d2bcff8eddbbec94e69b5f94a9d6addc68131ee4d8fd6bcd5cc8bcd34ddf2eb7de12441
|
|
7
|
+
data.tar.gz: 1c78ec3e19cf6ff87c5c6b5b53e112e83a93ac7dd4f012038dceb1d55bfc9efe644fe295747775afcfec7d97c9484944442a89b7de97c23d13fd05ffc16c510d
|
data/bin/twig-build
CHANGED
|
@@ -206,7 +206,7 @@ class Build
|
|
|
206
206
|
end
|
|
207
207
|
@git_branch = ENV['DRONE_BRANCH']
|
|
208
208
|
hostname_pattern_priority = hostname_pattern_priority()
|
|
209
|
-
tags = [
|
|
209
|
+
@tags = [
|
|
210
210
|
{
|
|
211
211
|
key: "qainit",
|
|
212
212
|
value: @git_branch
|
|
@@ -217,26 +217,26 @@ class Build
|
|
|
217
217
|
}
|
|
218
218
|
]
|
|
219
219
|
@projects.each do |key, value|
|
|
220
|
-
tags << { key: key, value: value['name'] }
|
|
220
|
+
@tags << { key: key, value: value['name'] }
|
|
221
221
|
end
|
|
222
222
|
|
|
223
223
|
cluster_stack_name = "ecs-cluster-qa-#{deploy_id}"
|
|
224
224
|
|
|
225
225
|
if stack_exists?(cluster_stack_name)
|
|
226
|
-
tags = get_stack_tags(cluster_stack_name)
|
|
227
|
-
hostname_pattern_priority = tags.detect do |tag|
|
|
226
|
+
@tags = get_stack_tags(cluster_stack_name)
|
|
227
|
+
hostname_pattern_priority = @tags.detect do |tag|
|
|
228
228
|
tag.key == 'hostname_pattern_priority'
|
|
229
229
|
end.value
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
create_cluster_stack(cluster_stack_name, tags) unless stack_exists?(cluster_stack_name)
|
|
232
|
+
create_cluster_stack(cluster_stack_name, @tags) unless stack_exists?(cluster_stack_name)
|
|
233
233
|
wait_for_stack_ready(cluster_stack_name) unless stack_ready?(cluster_stack_name)
|
|
234
234
|
|
|
235
235
|
create_alb_stack(stack_name_alb, "http", deploy_id) unless stack_exists?(stack_name_alb)
|
|
236
236
|
create_alb_stack(stack_name_alb_ws, "websocket", deploy_id) unless stack_exists?(stack_name_alb_ws)
|
|
237
237
|
|
|
238
238
|
asg_stack_name = "ecs-asg-allinone-qa-#{deploy_id}"
|
|
239
|
-
create_asg_stack(asg_stack_name, tags) unless stack_exists?(asg_stack_name)
|
|
239
|
+
create_asg_stack(asg_stack_name, @tags) unless stack_exists?(asg_stack_name)
|
|
240
240
|
|
|
241
241
|
stack_name_db = "ecs-task-db-qa-#{deploy_id}"
|
|
242
242
|
stack_body = IO.read('cloudformation/stacks/task/db.yml')
|
|
@@ -250,7 +250,7 @@ class Build
|
|
|
250
250
|
parameter_value: get_ecs_cluster_name
|
|
251
251
|
}
|
|
252
252
|
]
|
|
253
|
-
create_stack(stack_name_db, stack_body, parameters, tags, @cf_role) unless stack_exists?(stack_name_db) # creazione asincrona stack dei db (~4 min)
|
|
253
|
+
create_stack(stack_name_db, stack_body, parameters, @tags, @cf_role) unless stack_exists?(stack_name_db) # creazione asincrona stack dei db (~4 min)
|
|
254
254
|
|
|
255
255
|
output "check pyxis \n".yellow
|
|
256
256
|
|
|
@@ -350,7 +350,7 @@ class Build
|
|
|
350
350
|
}
|
|
351
351
|
]
|
|
352
352
|
|
|
353
|
-
create_stack(stack_name_route53, stack_body, parameters, tags, @cf_role) unless stack_exists?(stack_name_route53)
|
|
353
|
+
create_stack(stack_name_route53, stack_body, parameters, @tags, @cf_role) unless stack_exists?(stack_name_route53)
|
|
354
354
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
|
355
355
|
end
|
|
356
356
|
|
|
@@ -387,9 +387,9 @@ class Build
|
|
|
387
387
|
]
|
|
388
388
|
if stack_exists?(stack_name_skynet)
|
|
389
389
|
cur_version = get_currently_deployed_version(stack_name_skynet)
|
|
390
|
-
update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"]['revision'])
|
|
390
|
+
update_stack(stack_name_skynet, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["skynet"]['revision'])
|
|
391
391
|
else
|
|
392
|
-
create_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role)
|
|
392
|
+
create_stack(stack_name_skynet, stack_body, parameters, @tags, @cf_role)
|
|
393
393
|
end
|
|
394
394
|
end
|
|
395
395
|
|
|
@@ -426,9 +426,9 @@ class Build
|
|
|
426
426
|
]
|
|
427
427
|
if stack_exists?(stack_name_urania)
|
|
428
428
|
cur_version = get_currently_deployed_version(stack_name_urania)
|
|
429
|
-
update_stack(stack_name_urania, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["urania"]['revision'])
|
|
429
|
+
update_stack(stack_name_urania, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["urania"]['revision'])
|
|
430
430
|
else
|
|
431
|
-
create_stack(stack_name_urania, stack_body, parameters, tags, @cf_role)
|
|
431
|
+
create_stack(stack_name_urania, stack_body, parameters, @tags, @cf_role)
|
|
432
432
|
end
|
|
433
433
|
end
|
|
434
434
|
|
|
@@ -473,9 +473,9 @@ class Build
|
|
|
473
473
|
]
|
|
474
474
|
if stack_exists?(stack_name_ermes)
|
|
475
475
|
cur_version = get_currently_deployed_version(stack_name_ermes)
|
|
476
|
-
update_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["ermes"]['revision'])
|
|
476
|
+
update_stack(stack_name_ermes, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["ermes"]['revision'])
|
|
477
477
|
else
|
|
478
|
-
create_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role)
|
|
478
|
+
create_stack(stack_name_ermes, stack_body, parameters, @tags, @cf_role)
|
|
479
479
|
end
|
|
480
480
|
end
|
|
481
481
|
|
|
@@ -513,9 +513,9 @@ class Build
|
|
|
513
513
|
]
|
|
514
514
|
if stack_exists?(stack_name_bburago)
|
|
515
515
|
cur_version = get_currently_deployed_version(stack_name_bburago)
|
|
516
|
-
update_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["bburago"]['revision'])
|
|
516
|
+
update_stack(stack_name_bburago, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["bburago"]['revision'])
|
|
517
517
|
else
|
|
518
|
-
create_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role)
|
|
518
|
+
create_stack(stack_name_bburago, stack_body, parameters, @tags, @cf_role)
|
|
519
519
|
end
|
|
520
520
|
end
|
|
521
521
|
|
|
@@ -553,9 +553,9 @@ class Build
|
|
|
553
553
|
]
|
|
554
554
|
if stack_exists?(stack_name_hal9000)
|
|
555
555
|
cur_version = get_currently_deployed_version(stack_name_hal9000)
|
|
556
|
-
update_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hal9000"]['revision'])
|
|
556
|
+
update_stack(stack_name_hal9000, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["hal9000"]['revision'])
|
|
557
557
|
else
|
|
558
|
-
create_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role)
|
|
558
|
+
create_stack(stack_name_hal9000, stack_body, parameters, @tags, @cf_role)
|
|
559
559
|
end
|
|
560
560
|
end
|
|
561
561
|
|
|
@@ -597,9 +597,9 @@ class Build
|
|
|
597
597
|
]
|
|
598
598
|
if stack_exists?(stack_name_fidaty)
|
|
599
599
|
cur_version = get_currently_deployed_version(stack_name_fidaty)
|
|
600
|
-
update_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["fidaty"]['revision'])
|
|
600
|
+
update_stack(stack_name_fidaty, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["fidaty"]['revision'])
|
|
601
601
|
else
|
|
602
|
-
create_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role)
|
|
602
|
+
create_stack(stack_name_fidaty, stack_body, parameters, @tags, @cf_role)
|
|
603
603
|
end
|
|
604
604
|
end
|
|
605
605
|
|
|
@@ -645,9 +645,9 @@ class Build
|
|
|
645
645
|
]
|
|
646
646
|
if stack_exists?(stack_name_peano)
|
|
647
647
|
cur_version = get_currently_deployed_version(stack_name_peano)
|
|
648
|
-
update_stack(stack_name_peano, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["peano"]['revision'])
|
|
648
|
+
update_stack(stack_name_peano, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["peano"]['revision'])
|
|
649
649
|
else
|
|
650
|
-
create_stack(stack_name_peano, stack_body, parameters, tags, @cf_role)
|
|
650
|
+
create_stack(stack_name_peano, stack_body, parameters, @tags, @cf_role)
|
|
651
651
|
end
|
|
652
652
|
end
|
|
653
653
|
|
|
@@ -677,9 +677,9 @@ class Build
|
|
|
677
677
|
]
|
|
678
678
|
if stack_exists?(stack_name_rogoreport)
|
|
679
679
|
cur_version = get_currently_deployed_version(stack_name_rogoreport)
|
|
680
|
-
update_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rogoreport"]['revision'])
|
|
680
|
+
update_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["rogoreport"]['revision'])
|
|
681
681
|
else
|
|
682
|
-
create_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role)
|
|
682
|
+
create_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role)
|
|
683
683
|
end
|
|
684
684
|
end
|
|
685
685
|
|
|
@@ -733,9 +733,9 @@ class Build
|
|
|
733
733
|
]
|
|
734
734
|
if stack_exists?(stack_name_assange)
|
|
735
735
|
cur_version = get_currently_deployed_version(stack_name_assange)
|
|
736
|
-
update_stack(stack_name_assange, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["assange"]['revision'])
|
|
736
|
+
update_stack(stack_name_assange, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["assange"]['revision'])
|
|
737
737
|
else
|
|
738
|
-
create_stack(stack_name_assange, stack_body, parameters, tags, @cf_role)
|
|
738
|
+
create_stack(stack_name_assange, stack_body, parameters, @tags, @cf_role)
|
|
739
739
|
end
|
|
740
740
|
end
|
|
741
741
|
|
|
@@ -773,9 +773,9 @@ class Build
|
|
|
773
773
|
]
|
|
774
774
|
if stack_exists?(stack_name_leftorium)
|
|
775
775
|
cur_version = get_currently_deployed_version(stack_name_leftorium)
|
|
776
|
-
update_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["leftorium"]['revision'])
|
|
776
|
+
update_stack(stack_name_leftorium, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["leftorium"]['revision'])
|
|
777
777
|
else
|
|
778
|
-
create_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role)
|
|
778
|
+
create_stack(stack_name_leftorium, stack_body, parameters, @tags, @cf_role)
|
|
779
779
|
end
|
|
780
780
|
end
|
|
781
781
|
|
|
@@ -820,10 +820,10 @@ class Build
|
|
|
820
820
|
unless cur_version.include?(@projects["rachele"]['revision'])
|
|
821
821
|
delete_stack(stack_name_rachele)
|
|
822
822
|
wait_for_stack_removal(stack_name_rachele)
|
|
823
|
-
create_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role)
|
|
823
|
+
create_stack(stack_name_rachele, stack_body, parameters, @tags, @cf_role)
|
|
824
824
|
end
|
|
825
825
|
else
|
|
826
|
-
create_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role)
|
|
826
|
+
create_stack(stack_name_rachele, stack_body, parameters, @tags, @cf_role)
|
|
827
827
|
end
|
|
828
828
|
end
|
|
829
829
|
|
|
@@ -889,9 +889,9 @@ class Build
|
|
|
889
889
|
]
|
|
890
890
|
if stack_exists?(stack_name_borat)
|
|
891
891
|
cur_version = get_currently_deployed_version(stack_name_borat)
|
|
892
|
-
update_stack(stack_name_borat, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["borat"]['revision'])
|
|
892
|
+
update_stack(stack_name_borat, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["borat"]['revision'])
|
|
893
893
|
else
|
|
894
|
-
create_stack(stack_name_borat, stack_body, parameters, tags, @cf_role)
|
|
894
|
+
create_stack(stack_name_borat, stack_body, parameters, @tags, @cf_role)
|
|
895
895
|
end
|
|
896
896
|
end
|
|
897
897
|
|
|
@@ -949,9 +949,9 @@ class Build
|
|
|
949
949
|
]
|
|
950
950
|
if stack_exists?(stack_name_crash)
|
|
951
951
|
cur_version = get_currently_deployed_version(stack_name_crash)
|
|
952
|
-
update_stack(stack_name_crash, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["crash"]['revision'])
|
|
952
|
+
update_stack(stack_name_crash, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["crash"]['revision'])
|
|
953
953
|
else
|
|
954
|
-
create_stack(stack_name_crash, stack_body, parameters, tags, @cf_role)
|
|
954
|
+
create_stack(stack_name_crash, stack_body, parameters, @tags, @cf_role)
|
|
955
955
|
end
|
|
956
956
|
end
|
|
957
957
|
|
|
@@ -1000,10 +1000,10 @@ class Build
|
|
|
1000
1000
|
unless cur_version.include?(@projects["starsky"]['revision'])
|
|
1001
1001
|
delete_stack(stack_name_starsky)
|
|
1002
1002
|
wait_for_stack_removal(stack_name_starsky)
|
|
1003
|
-
create_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role)
|
|
1003
|
+
create_stack(stack_name_starsky, stack_body, parameters, @tags, @cf_role)
|
|
1004
1004
|
end
|
|
1005
1005
|
else
|
|
1006
|
-
create_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role)
|
|
1006
|
+
create_stack(stack_name_starsky, stack_body, parameters, @tags, @cf_role)
|
|
1007
1007
|
end
|
|
1008
1008
|
end
|
|
1009
1009
|
|
|
@@ -1049,9 +1049,9 @@ class Build
|
|
|
1049
1049
|
]
|
|
1050
1050
|
if stack_exists?(stack_name_activia)
|
|
1051
1051
|
cur_version = get_currently_deployed_version(stack_name_activia)
|
|
1052
|
-
update_stack(stack_name_activia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["activia"]['revision'])
|
|
1052
|
+
update_stack(stack_name_activia, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["activia"]['revision'])
|
|
1053
1053
|
else
|
|
1054
|
-
create_stack(stack_name_activia, stack_body, parameters, tags, @cf_role)
|
|
1054
|
+
create_stack(stack_name_activia, stack_body, parameters, @tags, @cf_role)
|
|
1055
1055
|
end
|
|
1056
1056
|
end
|
|
1057
1057
|
|
|
@@ -1129,9 +1129,9 @@ class Build
|
|
|
1129
1129
|
]
|
|
1130
1130
|
if stack_exists?(stack_name_web)
|
|
1131
1131
|
cur_version = get_currently_deployed_version(stack_name_web)
|
|
1132
|
-
update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1132
|
+
update_stack(stack_name_web, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1133
1133
|
else
|
|
1134
|
-
create_stack(stack_name_web, stack_body, parameters, tags, @cf_role)
|
|
1134
|
+
create_stack(stack_name_web, stack_body, parameters, @tags, @cf_role)
|
|
1135
1135
|
end
|
|
1136
1136
|
end
|
|
1137
1137
|
|
|
@@ -1193,9 +1193,9 @@ class Build
|
|
|
1193
1193
|
]
|
|
1194
1194
|
if stack_exists?(stack_name_consumer)
|
|
1195
1195
|
cur_version = get_currently_deployed_version(stack_name_consumer)
|
|
1196
|
-
update_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1196
|
+
update_stack(stack_name_consumer, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1197
1197
|
else
|
|
1198
|
-
create_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role)
|
|
1198
|
+
create_stack(stack_name_consumer, stack_body, parameters, @tags, @cf_role)
|
|
1199
1199
|
end
|
|
1200
1200
|
end
|
|
1201
1201
|
|
|
@@ -1233,9 +1233,9 @@ class Build
|
|
|
1233
1233
|
]
|
|
1234
1234
|
if stack_exists?(stack_name_roger)
|
|
1235
1235
|
cur_version = get_currently_deployed_version(stack_name_roger)
|
|
1236
|
-
update_stack(stack_name_roger, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["roger"]['revision'])
|
|
1236
|
+
update_stack(stack_name_roger, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["roger"]['revision'])
|
|
1237
1237
|
else
|
|
1238
|
-
create_stack(stack_name_roger, stack_body, parameters, tags, @cf_role)
|
|
1238
|
+
create_stack(stack_name_roger, stack_body, parameters, @tags, @cf_role)
|
|
1239
1239
|
end
|
|
1240
1240
|
end
|
|
1241
1241
|
|
|
@@ -1282,9 +1282,9 @@ class Build
|
|
|
1282
1282
|
]
|
|
1283
1283
|
if stack_exists?(stack_name_hutch)
|
|
1284
1284
|
cur_version = get_currently_deployed_version(stack_name_hutch)
|
|
1285
|
-
update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"]['revision'])
|
|
1285
|
+
update_stack(stack_name_hutch, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["hutch"]['revision'])
|
|
1286
1286
|
else
|
|
1287
|
-
create_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role)
|
|
1287
|
+
create_stack(stack_name_hutch, stack_body, parameters, @tags, @cf_role)
|
|
1288
1288
|
end
|
|
1289
1289
|
end
|
|
1290
1290
|
|
|
@@ -1333,9 +1333,9 @@ class Build
|
|
|
1333
1333
|
]
|
|
1334
1334
|
if stack_exists?(stack_name_maia)
|
|
1335
1335
|
cur_version = get_currently_deployed_version(stack_name_maia)
|
|
1336
|
-
update_stack(stack_name_maia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["maia"]['revision'])
|
|
1336
|
+
update_stack(stack_name_maia, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["maia"]['revision'])
|
|
1337
1337
|
else
|
|
1338
|
-
create_stack(stack_name_maia, stack_body, parameters, tags, @cf_role)
|
|
1338
|
+
create_stack(stack_name_maia, stack_body, parameters, @tags, @cf_role)
|
|
1339
1339
|
end
|
|
1340
1340
|
end
|
|
1341
1341
|
|