* skip husky install during ci and deployment

* migrate db after deployment
This commit is contained in:
m5r 2021-09-03 02:50:58 +08:00
parent a4c99b7e28
commit 0f7e6149d9
3 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,8 @@ jobs:
name: Lint
timeout-minutes: 4
runs-on: ubuntu-latest
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
@ -19,6 +21,8 @@ jobs:
name: Test
timeout-minutes: 4
runs-on: ubuntu-latest
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
@ -31,6 +35,8 @@ jobs:
name: Compile
timeout-minutes: 6
runs-on: ubuntu-latest
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
@ -47,6 +53,8 @@ jobs:
needs: [lint, test, build]
name: Deploy dev.shellphone.app
runs-on: ubuntu-latest
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@master
@ -65,6 +73,8 @@ jobs:
needs: [lint, test, build]
name: Deploy www.shellphone.app
runs-on: ubuntu-latest
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@master

View File

@ -9,6 +9,7 @@ processes = []
[build.args]
QUIRREL_BASE_URL = "dev.shellphone.app"
HUSKY_SKIP_INSTALL = 1
[env]
AWS_SES_REGION = "eu-central-1"
@ -17,6 +18,9 @@ processes = []
QUIRREL_BASE_URL = "dev.shellphone.app"
APP_BASE_URL = "dev.shellphone.app"
[deploy]
release_command = "/app/node_modules/.bin/blitz prisma migrate deploy"
[experimental]
allowed_public_ports = []
auto_rollback = true

View File

@ -9,6 +9,7 @@ processes = []
[build.args]
QUIRREL_BASE_URL = "www.shellphone.app"
HUSKY_SKIP_INSTALL = 1
[env]
AWS_SES_REGION = "eu-central-1"
@ -17,6 +18,9 @@ processes = []
QUIRREL_BASE_URL = "www.shellphone.app"
APP_BASE_URL = "www.shellphone.app"
[deploy]
release_command = "/app/node_modules/.bin/blitz prisma migrate deploy"
[experimental]
allowed_public_ports = []
auto_rollback = true