Use GitHub Actions for CI

This commit is contained in:
Sebastian Serth
2020-12-07 12:25:08 +01:00
parent f5492ca35d
commit 6fb521f80a
9 changed files with 90 additions and 65 deletions

58
config/docker.yml.erb.ci Normal file
View File

@ -0,0 +1,58 @@
#Why erb?
default: &default
connection_timeout: 3
pool:
active: false
location: http://localhost:3000
ports: !ruby/range 4500..4600
development:
<<: *default
host: tcp://127.0.0.1:2376
ws_host: ws://127.0.0.1:2376 #url to connect rails server to docker host
ws_client_protocol: 'ws:' #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
pool:
location: http://localhost:3000
active: true
refill:
async: false
batch_size: 8
interval: 15
timeout: 60
#workspace_root: <%= File.join('/', 'shared', Rails.env) %>
production:
<<: *default
host: unix:///var/run/docker.sock
pool:
active: true
location: http://localhost:3000
refill:
async: false
batch_size: 8
interval: 15
timeout: 60
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
ws_host: ws://localhost:4243 #url to connect rails server to docker host
ws_client_protocol: 'wss:' #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
staging:
<<: *default
host: unix:///var/run/docker.sock
pool:
active: true
location: http://localhost:3000
refill:
async: false
batch_size: 8
interval: 15
timeout: 60
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
ws_host: ws://localhost:4243 #url to connect rails server to docker host
ws_client_protocol: 'wss:' #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
test:
<<: *default
host: tcp://127.0.0.1:2376
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>