Skip to content

Commit

Permalink
feat: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
murphylee10 committed Oct 15, 2024
1 parent c3a899d commit 67236e7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.12
WORKDIR /bot
COPY deps.txt /bot/
RUN pip install -r deps.txt
COPY . /bot/
CMD ["python", "main.py"]
16 changes: 16 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# fly.toml app configuration file generated for amacss-bot on 2024-10-14T21:10:53-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'amacss-bot'
primary_region = 'yyz'

[mounts]
source = "amacss_bot"
destination = "/data"

[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1

0 comments on commit 67236e7

Please sign in to comment.