prima-twig 1.0.12 → 1.0.13
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 +22 -16
- 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: 2447f9de100d318946c1241da1855fa097f096ace60ce7a86bb1fa88c9deace9
|
|
4
|
+
data.tar.gz: 76c7edff41bf97a51402002283d75a4e3c54450de367fc0fc0679584187b4996
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdddea3d1f0d717a188b30be4d6751832e7a7419af80677839a251172bf91a85fa910f85a57d062525fef0d0cdb9295f309bec5591a8cfee8c99262fa150f524
|
|
7
|
+
data.tar.gz: 17547c511ae1d3eb66ab23ac6ede81883362f29b37a7a8f5cbabd2cb70e1ff3c23fe3facdf1cf86dca3d78ba8d2c501ca39d7b1125987923a640c52927af0d96
|
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 = ENV['DRONE_BRANCH']
|
|
54
54
|
@cloudflare = Rubyflare.connect_with(ENV['CLOUDFLARE_EMAIL'], ENV['CLOUDFLARE_APIKEY'])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -61,6 +61,7 @@ class Build
|
|
|
61
61
|
when 'infrastructure'
|
|
62
62
|
create_infrastructure_stacks! unless is_shutdown?
|
|
63
63
|
when 'project'
|
|
64
|
+
set_tags()
|
|
64
65
|
proj_method = "create_#{args[1]}_stack"
|
|
65
66
|
self.send(proj_method.to_sym) unless is_shutdown?
|
|
66
67
|
when 'complete'
|
|
@@ -194,21 +195,7 @@ class Build
|
|
|
194
195
|
"ecs-task-#{service}-qa-#{get_deploy_id}"
|
|
195
196
|
end
|
|
196
197
|
|
|
197
|
-
def
|
|
198
|
-
`git pull && git submodule init && git submodule update`
|
|
199
|
-
@ami_id = get_ami_id("ecs-fleet-allinone-staging")
|
|
200
|
-
deploy_id = get_deploy_id
|
|
201
|
-
stack_name_alb = 'ecs-alb-http-public-qa-' + deploy_id[0..5]
|
|
202
|
-
stack_name_alb_ws = 'ecs-alb-ws-public-qa-' + deploy_id[0..5]
|
|
203
|
-
unless @qainit
|
|
204
|
-
@projects.each_key do |project_key|
|
|
205
|
-
if @projects[project_key]['revision']
|
|
206
|
-
git_checkout_version(project_key, @projects[project_key]['revision'])
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
@git_branch = ENV['DRONE_BRANCH']
|
|
211
|
-
hostname_pattern_priority = hostname_pattern_priority()
|
|
198
|
+
def set_tags()
|
|
212
199
|
@tags = [
|
|
213
200
|
{
|
|
214
201
|
key: "qainit",
|
|
@@ -222,6 +209,24 @@ class Build
|
|
|
222
209
|
@projects.each do |key, value|
|
|
223
210
|
@tags << { key: key, value: value['name'] }
|
|
224
211
|
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
def create_infrastructure_stacks!
|
|
215
|
+
`git pull && git submodule init && git submodule update`
|
|
216
|
+
@ami_id = get_ami_id("ecs-fleet-allinone-staging")
|
|
217
|
+
deploy_id = get_deploy_id
|
|
218
|
+
stack_name_alb = 'ecs-alb-http-public-qa-' + deploy_id[0..5]
|
|
219
|
+
stack_name_alb_ws = 'ecs-alb-ws-public-qa-' + deploy_id[0..5]
|
|
220
|
+
unless @qainit
|
|
221
|
+
@projects.each_key do |project_key|
|
|
222
|
+
if @projects[project_key]['revision']
|
|
223
|
+
git_checkout_version(project_key, @projects[project_key]['revision'])
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
hostname_pattern_priority = hostname_pattern_priority()
|
|
228
|
+
|
|
229
|
+
set_tags()
|
|
225
230
|
|
|
226
231
|
cluster_stack_name = "ecs-cluster-qa-#{deploy_id}"
|
|
227
232
|
|
|
@@ -1486,6 +1491,7 @@ class Build
|
|
|
1486
1491
|
> RabbitMQ url: http://#{get_ec2_ip_address}:15672
|
|
1487
1492
|
> Supervisor url: http://#{get_ec2_ip_address}:9001
|
|
1488
1493
|
> Elasticsearch url: http://#{get_ec2_ip_address}:9200
|
|
1494
|
+
> Git branch: #{@git_branch}
|
|
1489
1495
|
> SSH connection: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no githubUsername@#{get_ec2_ip_address}\n"
|
|
1490
1496
|
output projects_text.cyan
|
|
1491
1497
|
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.13
|
|
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: 2020-04-
|
|
17
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk-autoscaling
|