forked from mirrors/homebox
add auto deploy to fly.io
This commit is contained in:
parent
f4609a8110
commit
89591b2c60
1 changed files with 13 additions and 0 deletions
13
.github/workflows/publish.yaml
vendored
13
.github/workflows/publish.yaml
vendored
|
@ -5,6 +5,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
backend-tests:
|
backend-tests:
|
||||||
name: "Backend Server Tests"
|
name: "Backend Server Tests"
|
||||||
|
@ -14,6 +17,16 @@ jobs:
|
||||||
name: "Frontend and End-to-End Tests"
|
name: "Frontend and End-to-End Tests"
|
||||||
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
|
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- backend-tests
|
||||||
|
- frontend-tests
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||||
|
- run: flyctl deploy --remote-only
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: "Publish Nightly"
|
name: "Publish Nightly"
|
||||||
needs:
|
needs:
|
||||||
|
|
Loading…
Reference in a new issue