Repository navigation
99 lines (85 loc) · 3.5 KB
/
Copy pathdeploy-fe.yaml
File metadata and controls
99 lines (85 loc) · 3.5 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Deploy Frontend Apps
on:
push:
branches:
- main
paths:
- "apps/envsync-web/**"
- "apps/envsync-landing/**"
- "packages/envsync-enterprise-web/**"
- "sdks/**"
- ".github/workflows/deploy-fe.yaml"
workflow_dispatch:
permissions:
contents: read
jobs:
deploy-web:
name: Deploy envsync-web (Hosted)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.9"
- name: Install dependencies
run: bun install
- name: Build TypeScript SDK
run: bun run --filter @envsync-cloud/envsync-ts-sdk build
# Hosted SaaS must ship enterprise dashboard modules (integrations, license, sync).
# Self-host OSS static images use build:oss via release.yml — do not change that path here.
- name: Build Hosted web (enterprise modules)
run: bun run --filter envsync-web build:hosted
env:
VITE_API_BASE_URL: ${{ secrets.ENVSYNC_API_URL }}
VITE_SERVER_LICENSE: enterprise
VITE_ENVSYNC_DEPLOYMENT_MODE: hosted
VITE_APP_VERSION: ${{ github.ref_name }}
VITE_OTEL_ENDPOINT: https://t.envsync.cloud/obs
VITE_OTEL_SERVICE_NAME: envsync-web
VITE_HYPERDX_URL: https://t.envsync.cloud/obs
VITE_HYPERDX_API_KEY: ${{ secrets.ENVSYNC_HYPERDX_API_KEY }}
VITE_HYPERDX_DISABLED: ${{ secrets.ENVSYNC_HYPERDX_DISABLED }}
VITE_POSTHOG_KEY: ${{ secrets.ENVSYNC_POSTHOG_KEY }}
VITE_POSTHOG_PROJECT_TOKEN: ${{ secrets.ENVSYNC_POSTHOG_KEY }}
VITE_POSTHOG_HOST: ${{ secrets.ENVSYNC_POSTHOG_HOST }}
VITE_POSTHOG_UI_HOST: ${{ secrets.ENVSYNC_POSTHOG_UI_HOST }}
VITE_POSTHOG_DISABLED: ${{ secrets.ENVSYNC_POSTHOG_DISABLED }}
- name: Deploy to Cloudflare
run: bun wrangler deploy
working-directory: apps/envsync-web
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_DEPLOY_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
deploy-landing:
name: Deploy envsync-landing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.9"
- name: Install dependencies
run: bun install
- name: Build SDK
run: bun run --filter @envsync-cloud/envsync-ts-sdk build
- name: Build
run: bun run --filter envsync-landing build
env:
VITE_API_BASE_URL: ${{ secrets.ENVSYNC_API_URL }}
VITE_APP_VERSION: ${{ github.ref_name }}
VITE_OTEL_ENDPOINT: https://t.envsync.cloud/obs
VITE_OTEL_SERVICE_NAME: envsync-landing
VITE_HYPERDX_URL: https://t.envsync.cloud/obs
VITE_HYPERDX_API_KEY: ${{ secrets.ENVSYNC_HYPERDX_API_KEY }}
VITE_HYPERDX_DISABLED: ${{ secrets.ENVSYNC_HYPERDX_DISABLED }}
VITE_POSTHOG_KEY: ${{ secrets.ENVSYNC_POSTHOG_KEY }}
VITE_POSTHOG_PROJECT_TOKEN: ${{ secrets.ENVSYNC_POSTHOG_KEY }}
VITE_POSTHOG_HOST: ${{ secrets.ENVSYNC_POSTHOG_HOST }}
VITE_POSTHOG_UI_HOST: ${{ secrets.ENVSYNC_POSTHOG_UI_HOST }}
VITE_POSTHOG_DISABLED: ${{ secrets.ENVSYNC_POSTHOG_DISABLED }}
- name: Deploy to Cloudflare
run: bun wrangler deploy
working-directory: apps/envsync-landing
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_DEPLOY_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}