-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
80 lines (69 loc) · 1.83 KB
/
.drone.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
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
kind: pipeline
type: docker
name: default-ci
trigger:
event: push
branch:
exclude:
- main
steps:
- name: npm install
image: node:18.19
commands:
- node -v
- npm -v
- npm ci
- name: Check prettier
image: node:18.19
commands:
- npm run check-format
- name: Check types
image: node:18.19
commands:
- npm run check-types
- name: Vercel deploy to preview
image: node:18.19
environment:
VERCEL_ORG_ID: team_qEUZmPwX3J0FFDAk23fSvIlq
VERCEL_PROJECT_ID: prj_Fp3PcYR1CrST2QwpLO2fEwJFXkdO
VERCEL_TOKEN:
from_secret: vercel-token
commands:
- npm install --global vercel@canary
- vercel pull --yes --scope i-exec --token $VERCEL_TOKEN
- VITE_APP_COMMIT=${DRONE_COMMIT} vercel build --scope i-exec --token $VERCEL_TOKEN
- vercel deploy --prebuilt --scope i-exec --token $VERCEL_TOKEN
---
kind: pipeline
type: docker
name: prod-ci
trigger:
event: push
branch: main
steps:
- name: npm install
image: node:18.19
commands:
- node -v
- npm -v
- npm ci
- name: Check prettier
image: node:18.19
commands:
- npm run check-format
- name: Check types
image: node:18.19
commands:
- npm run check-types
- name: Vercel deploy to prod
image: node:18.19
environment:
VERCEL_ORG_ID: team_qEUZmPwX3J0FFDAk23fSvIlq
VERCEL_PROJECT_ID: prj_Fp3PcYR1CrST2QwpLO2fEwJFXkdO
VERCEL_TOKEN:
from_secret: vercel-token
commands:
- npm install --global vercel@canary
- vercel pull --yes --environment=production --scope i-exec --token $VERCEL_TOKEN
- SET_SUBPATH_FOR_PROD=true VITE_APP_COMMIT=${DRONE_COMMIT} vercel build --prod --scope i-exec --token $VERCEL_TOKEN
- vercel deploy --prod --prebuilt --scope i-exec --token $VERCEL_TOKEN