diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..16a75da --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,13 @@ +name: deploy +on: + push: + branches: [main] +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --local-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3b15918 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM miniflux/miniflux:2.0.37 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e21e8e2 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# minicharge.fly.dev + +## 前提 + +- PostgreSQL + +## 構築 + +```sh +git clone git@github.com:kou029w/minicharge.fly.dev.git +curl -L https://fly.io/install.sh | sh +flyctl auth login +flyctl launch +flyctl secrets set DATABASE_URL=postgres://*** # PostgreSQL接続URLを設定 +flyctl deploy +``` diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..537f43d --- /dev/null +++ b/fly.toml @@ -0,0 +1,40 @@ +# fly.toml file generated for minicharge on 2022-07-03T18:59:00+09:00 + +app = "minicharge" +kill_signal = "SIGINT" +kill_timeout = 5 +processes = [] + +[env] + LISTEN_ADDR = "0.0.0.0:8080" + RUN_MIGRATIONS = "1" + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[[services]] + http_checks = [] + internal_port = 8080 + processes = ["app"] + protocol = "tcp" + script_checks = [] + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + type = "connections" + + [[services.ports]] + force_https = true + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s" diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..347ecf5 --- /dev/null +++ b/renovate.json @@ -0,0 +1,10 @@ +{ + "extends": [ + "config:base", + ":automergeAll", + ":automergeBranch", + ":skipStatusChecks", + "docker:enableMajor", + "docker:pinDigests" + ] +}