-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 964 Bytes
/
fly-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# see:
# * https://fly.io/docs/blueprints/review-apps-guide
# * https://github.com/superfly/fly-pr-review-apps/blob/1.2.1/README.md
name: Fly Review
on:
pull_request:
types: [opened, reopened, synchronize, closed]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_APP: pr-${{ github.event.number }}-mmmines
FLY_ORG: mmmines
FLY_REGION: ord
jobs:
review:
runs-on: ubuntu-latest
outputs:
url: ${{ steps.deploy.outputs.url }}
# ensure only one deployment runs at a time
concurrency:
group: pr-${{ github.event.number }}
environment:
name: review
url: ${{ steps.deploy.outputs.url }}
steps:
- uses: actions/checkout@v4
- id: deploy
uses: lewxdev/fly-pr-review-apps@main
with:
build_secrets: BASE_URL=https://${{ env.FLY_APP }}.fly.dev
secrets: |
BASE_URL=https://${{ env.FLY_APP }}.fly.dev
REDIS_URL=${{ secrets.REDIS_URL }}