Skip to content

Commit fd505ba

Browse files
committed
Add fly auto deploy
1 parent b813577 commit fd505ba

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.github/workflows/fly-deploy.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Fly Deploy
2+
on: [push]
3+
env:
4+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
5+
jobs:
6+
deploy:
7+
name: Deploy app
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: superfly/flyctl-actions/setup-flyctl@master
12+
- run: flyctl deploy --remote-only

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM python:3.9-slim as py
1+
FROM python:3.9-alpine as py
22

33
FROM py as build
44

5-
RUN apt update && apt install -y g++
5+
RUN apk add --no-cache build-base
66
COPY requirements.txt /
77
RUN pip install --prefix=/inst -U -r /requirements.txt
88

fly.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# fly.toml file generated for msc-modmail on 2022-08-26T00:51:48+01:00
2+
3+
app = "msc-modmail"
4+
kill_signal = "SIGINT"
5+
kill_timeout = 5
6+
7+
[env]
8+
9+
[experimental]
10+
allowed_public_ports = []
11+
auto_rollback = true
12+
cmd = []
13+
entrypoint = []
14+
exec = []

0 commit comments

Comments
 (0)