-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (43 loc) · 1.57 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
46 lines (43 loc) · 1.57 KB
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
37
38
39
40
41
42
43
44
45
46
name: Deploy Dev
# Trunk-based integration env: every push to main that passes Quality Check
# migrates the standing piyaz-dev Neon DB and redeploys the piyaz-dev Worker.
# No approval gate; this is the fast-feedback environment that always
# reflects main. Production is separate and release-gated (see deploy.yml).
on:
workflow_run:
workflows: ["Quality Check"]
types: [completed]
branches: [main]
jobs:
deploy-dev:
name: Migrate + deploy dev (piyaz-dev)
runs-on: ubuntu-latest
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'main' &&
github.repository == 'FrkAk/piyaz'
concurrency:
group: deploy-dev
cancel-in-progress: false
permissions:
contents: read
environment:
name: dev
url: https://dev.app.piyaz.ai
steps:
- name: Checkout the commit that passed Quality Check
uses: actions/checkout@v7
with:
ref: ${{ github.event.workflow_run.head_sha }}
persist-credentials: false
- name: Migrate + deploy
uses: ./.github/actions/deploy-worker
with:
migration_url: ${{ secrets.DATABASE_MIGRATION_URL_DEV }}
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
better_auth_url: https://dev.app.piyaz.ai
deploy_script: deploy:cf:dev
cache_prefix: deploy-dev
turnstile_site_key: ${{ vars.TURNSTILE_SITE_KEY_DEV }}