Skip to content

Commit 34b694f

Browse files
authored
pipelines (#1189)
Co-authored-by: simon <[email protected]>
1 parent 1a52028 commit 34b694f

File tree

3 files changed

+77
-6
lines changed

3 files changed

+77
-6
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ concurrency:
1212
env:
1313
CP_WEB_URL: https://cloud.rxc.app/
1414
CP_BACKEND_URL: https://cloud-f188e2cd-51fb-4b29-b546-2ce4b9efc5d5.fly.dev/
15-
PROMETHEUS_MULTIPROC_DIR: /tmp/prometheus_multiproc_dir
1615

1716
jobs:
1817
deploy:
19-
name: Deploy to Reflex and Fly.io
18+
name: Deploy to Reflex Cloud
2019
runs-on: ubuntu-latest
2120
steps:
2221
- name: Checkout code
@@ -30,10 +29,6 @@ jobs:
3029
- name: Install Requirements
3130
run: pip install -r requirements.txt
3231

33-
- name: Update Reflex
34-
run: pip install reflex -U
35-
36-
# temporary fix until reflex-cli is published to pypi
3732
- name: Update Reflex CLI
3833
run: pip install reflex-hosting-cli -U
3934

.github/workflows/deploy-prd.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy to production
2+
3+
on:
4+
workflow_dispatch:
5+
# This allows manual triggering of the workflow
6+
7+
8+
concurrency:
9+
group: deploy-prod
10+
cancel-in-progress: false
11+
12+
env:
13+
FLY_API_TOKEN: ${{ secrets.PRD_FLY_API_TOKEN }}
14+
15+
jobs:
16+
deploy:
17+
name: Deploy to Reflex Cloud
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.12'
27+
28+
- name: Install Requirements
29+
run: pip install -r requirements.txt
30+
31+
- name: Update Reflex CLI
32+
run: pip install reflex-hosting-cli -U
33+
34+
- name: Deploy to Reflex
35+
id: deploy
36+
run: |
37+
reflex deploy --project ${{ secrets.PRD_PROJECT_ID }} --token ${{ secrets.PRD_TOKEN }} --no-interactive

.github/workflows/deploy-stg.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to staging
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - 'r/*'
7+
8+
concurrency:
9+
group: deploy-staging
10+
cancel-in-progress: false
11+
12+
env:
13+
FLY_API_TOKEN: ${{ secrets.STG_FLY_API_TOKEN }}
14+
CP_WEB_URL: https://cloud.reflexcorp.run/
15+
CP_BACKEND_URL: https://cloud-29f4f535-4fb8-48b9-8b55-2000f2782aee.fly.dev/
16+
17+
jobs:
18+
deploy:
19+
name: Deploy to Reflex Cloud
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Install Requirements
31+
run: pip install -r requirements.txt
32+
33+
- name: Update Reflex CLI
34+
run: pip install reflex-hosting-cli -U
35+
36+
- name: Deploy to Reflex
37+
id: deploy
38+
run: |
39+
reflex deploy --project ${{ secrets.STG_PROJECT_ID }} --token ${{ secrets.STG_TOKEN }} --no-interactive

0 commit comments

Comments
 (0)