Skip to content

Commit c08c916

Browse files
committed
fly workflow
1 parent 7e8b744 commit c08c916

File tree

2 files changed

+38
-21
lines changed

2 files changed

+38
-21
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
name: Node.js CI
2-
1+
name: Fly Deploy
32
on: [push]
4-
3+
env:
4+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
55
jobs:
6-
build:
7-
8-
runs-on: ubuntu-latest
9-
10-
strategy:
11-
matrix:
12-
node-version: [14.x]
13-
14-
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: npm install
21-
- run: npm start
22-
env:
23-
CI: true
6+
deploy:
7+
name: Deploy app
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: superfly/flyctl-actions@1.1
12+
with:
13+
args: "deploy"

fly.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# fly.toml file generated for webmc on 2020-11-09T09:03:10+01:00
2+
3+
app = "webmc"
4+
5+
[build]
6+
builtin = "node"
7+
8+
9+
[[services]]
10+
internal_port = 8080
11+
protocol = "tcp"
12+
13+
[services.concurrency]
14+
hard_limit = 25
15+
soft_limit = 20
16+
17+
[[services.ports]]
18+
handlers = ["http"]
19+
port = "80"
20+
21+
[[services.ports]]
22+
handlers = ["tls", "http"]
23+
port = "443"
24+
25+
[[services.tcp_checks]]
26+
interval = 10000
27+
timeout = 2000

0 commit comments

Comments
 (0)