From ad93ba18c0d00893b0924d3c69913a1fd531b742 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 17 May 2020 05:27:30 +0900 Subject: [PATCH] =?UTF-8?q?Fly.io=20=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-fly.yml | 10 ++++++++++ README.md | 4 ++++ fly.toml | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 .github/workflows/deploy-fly.yml create mode 100644 fly.toml diff --git a/.github/workflows/deploy-fly.yml b/.github/workflows/deploy-fly.yml new file mode 100644 index 0000000..f7c5a59 --- /dev/null +++ b/.github/workflows/deploy-fly.yml @@ -0,0 +1,10 @@ +name: deploy-fly +on: [push] +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: superfly/flyctl-actions@1.0 + with: { args: deploy } + env: { FLY_API_TOKEN: "${{ secrets.FLY_API_TOKEN }}" } diff --git a/README.md b/README.md index eb29d90..e7df2d4 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ ### デプロイ +#### Fly.io + +[`flyctl deploy`](https://fly.io/docs/speedrun/) + #### Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/kou029w/daraz-san) diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..68e139c --- /dev/null +++ b/fly.toml @@ -0,0 +1,4 @@ +app = "daraz-san-kou029w" + +[build] + builder = "cloudfoundry/cnb:base"