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: 57e0cfc8aff16ebc5d9fd873249ce97234b93abe6f95705841fc24cd8cbf7a95
4
- data.tar.gz: 86e60dbfea5ec5b8fba12b9e6cac9818420f7648253681d94cb46e6b64da84cb
3
+ metadata.gz: 81f382888cb2b9a909006b59ccf5e2ca2b0d9e52789bd5ec2cbde77f24f1be1f
4
+ data.tar.gz: bd721da3ed8e48fc089a94a43a47890b4fa79b6d4d44c90030d47796a049c561
5
5
  SHA512:
6
- metadata.gz: 52fa18a4e2d590e1970436d7bb0c96cadf6f814aba9eff998408491431fb94dc7fe5037b4fb281ddbc79b0d6d256ba2c1e1040a8c1fd9879fee075b66c727958
7
- data.tar.gz: cb59910b2cd27a5866c17a061f5621e9406bf4672cf4f53badda89d46516db6b98d6e76d7bab7f53c6cc2a363c29771561955d9625be1d1b87553d15b4ba12ec
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}-connector \
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
- \n--vpc-connector=#{app_name}-connector \
104
- \n--vpc-egress=all \
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.38.5".freeze
2
+ VERSION = "0.38.6".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.17.5
1
+ 0.17.6
@@ -1 +1 @@
1
- 0.17.5
1
+ 0.17.6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.5
4
+ version: 0.38.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI