prima-twig 1.0.13 → 1.0.14
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 +16 -26
- 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: b42064cf9ef05ee9d998cd6fe3d77421e4edb01b598c6250fe6a40bb0a50164f
|
|
4
|
+
data.tar.gz: 9b830b7e1c1fa78abe87f734ebd1312a0e9d6ecc283303b3b80dd38c74700249
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9310f55d095458a29e04134ad55b0c79b217a29eea3c13b255dcf7d3e9da88eb23bd1d36e47c68e1d0e158f90266304220d609c70572285dcaf1b038ae17b60
|
|
7
|
+
data.tar.gz: 7091bc2b23182b25d324b94e6d51f70cc522d09306ecc3134df825e3974adc7b564c6b98ff170b14cd3f2d10f59f80ac16b29a5c13ef5190c6e8c91d70618ae7
|
data/bin/twig-build
CHANGED
|
@@ -50,7 +50,7 @@ class Build
|
|
|
50
50
|
}
|
|
51
51
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
52
52
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
53
|
-
@git_branch =
|
|
53
|
+
@git_branch = ''
|
|
54
54
|
@cloudflare = Rubyflare.connect_with(ENV['CLOUDFLARE_EMAIL'], ENV['CLOUDFLARE_APIKEY'])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -61,7 +61,6 @@ class Build
|
|
|
61
61
|
when 'infrastructure'
|
|
62
62
|
create_infrastructure_stacks! unless is_shutdown?
|
|
63
63
|
when 'project'
|
|
64
|
-
set_tags()
|
|
65
64
|
proj_method = "create_#{args[1]}_stack"
|
|
66
65
|
self.send(proj_method.to_sym) unless is_shutdown?
|
|
67
66
|
when 'complete'
|
|
@@ -195,22 +194,6 @@ class Build
|
|
|
195
194
|
"ecs-task-#{service}-qa-#{get_deploy_id}"
|
|
196
195
|
end
|
|
197
196
|
|
|
198
|
-
def set_tags()
|
|
199
|
-
@tags = [
|
|
200
|
-
{
|
|
201
|
-
key: "qainit",
|
|
202
|
-
value: @git_branch
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
key: "hostname_pattern_priority",
|
|
206
|
-
value: hostname_pattern_priority
|
|
207
|
-
}
|
|
208
|
-
]
|
|
209
|
-
@projects.each do |key, value|
|
|
210
|
-
@tags << { key: key, value: value['name'] }
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
|
|
214
197
|
def create_infrastructure_stacks!
|
|
215
198
|
`git pull && git submodule init && git submodule update`
|
|
216
199
|
@ami_id = get_ami_id("ecs-fleet-allinone-staging")
|
|
@@ -223,10 +206,22 @@ class Build
|
|
|
223
206
|
git_checkout_version(project_key, @projects[project_key]['revision'])
|
|
224
207
|
end
|
|
225
208
|
end
|
|
226
|
-
end
|
|
209
|
+
end
|
|
210
|
+
@git_branch = ENV['DRONE_BRANCH']
|
|
227
211
|
hostname_pattern_priority = hostname_pattern_priority()
|
|
228
|
-
|
|
229
|
-
|
|
212
|
+
@tags = [
|
|
213
|
+
{
|
|
214
|
+
key: "qainit",
|
|
215
|
+
value: @git_branch
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
key: "hostname_pattern_priority",
|
|
219
|
+
value: hostname_pattern_priority
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
@projects.each do |key, value|
|
|
223
|
+
@tags << { key: key, value: value['name'] }
|
|
224
|
+
end
|
|
230
225
|
|
|
231
226
|
cluster_stack_name = "ecs-cluster-qa-#{deploy_id}"
|
|
232
227
|
|
|
@@ -679,10 +674,6 @@ class Build
|
|
|
679
674
|
{
|
|
680
675
|
parameter_key: "WebHost",
|
|
681
676
|
parameter_value: "www-#{get_deploy_id}.qa.colaster.com"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
parameter_key: "AssangeHost",
|
|
685
|
-
parameter_value: "assange-#{get_deploy_id}.qa.colaster.com"
|
|
686
677
|
}
|
|
687
678
|
]
|
|
688
679
|
if stack_exists?(stack_name_peano)
|
|
@@ -1491,7 +1482,6 @@ class Build
|
|
|
1491
1482
|
> RabbitMQ url: http://#{get_ec2_ip_address}:15672
|
|
1492
1483
|
> Supervisor url: http://#{get_ec2_ip_address}:9001
|
|
1493
1484
|
> Elasticsearch url: http://#{get_ec2_ip_address}:9200
|
|
1494
|
-
> Git branch: #{@git_branch}
|
|
1495
1485
|
> SSH connection: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no githubUsername@#{get_ec2_ip_address}\n"
|
|
1496
1486
|
output projects_text.cyan
|
|
1497
1487
|
output "Deploy effettuato, everything is awesome!\n".green
|
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: 1.0.
|
|
4
|
+
version: 1.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
328
328
|
- !ruby/object:Gem::Version
|
|
329
329
|
version: '0'
|
|
330
330
|
requirements: []
|
|
331
|
-
rubygems_version: 3.0.
|
|
331
|
+
rubygems_version: 3.0.3
|
|
332
332
|
signing_key:
|
|
333
333
|
specification_version: 4
|
|
334
334
|
summary: The Prima twig toolbelt
|