souls 0.38.5 → 0.38.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f382888cb2b9a909006b59ccf5e2ca2b0d9e52789bd5ec2cbde77f24f1be1f
|
4
|
+
data.tar.gz: bd721da3ed8e48fc089a94a43a47890b4fa79b6d4d44c90030d47796a049c561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfc214f65176551b5cd99a00524b2907ad73319b8ea94745321c52e3ef24201ff93b39b3e04d3c5f34ec4c500e9bb06fc42ed9922feff433066979c18ed440a9
|
7
|
+
data.tar.gz: 490ce42a405de9971d6983384f42ce9330a046819b3bcc3c3982c401c47145e0097648e0be97a7fd8d4e6107e9736e46dc70d6988d108ac570e8e365351d1b2d
|
@@ -8,6 +8,7 @@ module Souls
|
|
8
8
|
create_firewall_ssh(app_name: app_name)
|
9
9
|
create_subnet(app_name: app_name, region: region, range: range)
|
10
10
|
create_connector(app_name: app_name, region: region)
|
11
|
+
create_router(app_name: app_name, region: region)
|
11
12
|
create_external_ip(app_name: app_name, region: region)
|
12
13
|
create_nat(app_name: app_name, region: region)
|
13
14
|
nat_credit(app_name: app_name)
|
@@ -53,6 +54,11 @@ module Souls
|
|
53
54
|
)
|
54
55
|
end
|
55
56
|
|
57
|
+
def create_router(app_name: "", region: "asia-northeast1")
|
58
|
+
app_name = Souls.configuration.app if app_name.blank?
|
59
|
+
system("gcloud compute routers create #{app_name}-router --network=#{app_name} --region=#{region}")
|
60
|
+
end
|
61
|
+
|
56
62
|
def create_external_ip(app_name: "", region: "asia-northeast1")
|
57
63
|
app_name = Souls.configuration.app if app_name.blank?
|
58
64
|
system("gcloud compute addresses create #{app_name}-worker-ip --region=#{region}")
|
@@ -62,7 +68,7 @@ module Souls
|
|
62
68
|
app_name = Souls.configuration.app if app_name.blank?
|
63
69
|
system(
|
64
70
|
"gcloud compute routers nats create #{app_name}-worker-nat \
|
65
|
-
--router=#{app_name}-
|
71
|
+
--router=#{app_name}-router \
|
66
72
|
--region=#{region} \
|
67
73
|
--nat-custom-subnet-ip-ranges=#{app_name}-subnet \
|
68
74
|
--nat-external-ip-pool=#{app_name}-worker-ip"
|
@@ -100,8 +106,8 @@ module Souls
|
|
100
106
|
Edit `.github/workflow/worker.yml`
|
101
107
|
|
102
108
|
Add these 2 options in `- name: Deploy to Cloud Run` step
|
103
|
-
|
104
|
-
|
109
|
+
--vpc-connector=#{app_name}-connector \
|
110
|
+
--vpc-egress=all \
|
105
111
|
|
106
112
|
TEXT
|
107
113
|
cd = Paint[endroll, :white]
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.17.
|
1
|
+
0.17.6
|
@@ -1 +1 @@
|
|
1
|
-
0.17.
|
1
|
+
0.17.6
|