Skip to content

Commit ee1d351

Browse files
authored
Merge pull request #10 from ResEmCode/ci/vercel-pipeline
Ci/vercel pipeline
2 parents 900f423 + 24592a1 commit ee1d351

File tree

4 files changed

+61
-9
lines changed

4 files changed

+61
-9
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: client-deploy.ci
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
on:
6+
workflow_run:
7+
workflows: ['client.ci']
8+
types:
9+
- completed
10+
11+
jobs:
12+
13+
Deploy-Preview:
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Code
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.workflow_run.head_sha }}
21+
22+
- name: Install Vercel
23+
run: npm install --global vercel@latest
24+
25+
- name: Pull Vercel
26+
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
27+
28+
- name: Build Artifacts
29+
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
30+
31+
- name: Deploy Project to Vercel
32+
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

client/src/shared/ui/Skeleton/Skeleton.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
background: linear-gradient(
1717
to right,
1818
transparent 0%,
19-
rgba(129 128 128) 50%,
19+
rgb(129 128 128) 50%,
2020
transparent 100%
2121
);
2222
content: "";

client/src/shared/ui/Stack/Flex/Flex.module.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
justify-content: flex-start;
1111
}
1212

13+
<<<<<<< HEAD
1314
.justify_center {
1415
justify-content: center;
1516
}
@@ -19,18 +20,37 @@
1920
}
2021

2122
.justify_between {
23+
=======
24+
.justifyCenter {
25+
justify-content: center;
26+
}
27+
28+
.justifyEnd {
29+
justify-content: flex-end;
30+
}
31+
32+
.justifyBetween {
33+
>>>>>>> 49a49fd (fix: client lint error)
2234
justify-content: space-between;
2335
}
2436

2537
.align_start {
2638
align-items: flex-start;
2739
}
2840

41+
<<<<<<< HEAD
2942
.align_center {
3043
align-items: center;
3144
}
3245

3346
.align_end {
47+
=======
48+
.alignCenter {
49+
align-items: center;
50+
}
51+
52+
.alignEnd {
53+
>>>>>>> 49a49fd (fix: client lint error)
3454
align-items: flex-end;
3555
}
3656

server/docker/entrypoint.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/bin/sh
2-
set -e
1+
#!/bin/sh
2+
set -e
33

4-
echo "[DEBUG] Waiting for postgres (sleeping 5s)..."
5-
sleep 5
4+
echo "[DEBUG] Waiting for postgres (sleeping 5s)..."
5+
sleep 5
66

7-
echo "[DEBUG] Start prisma migration"
8-
npx prisma migrate deploy
7+
echo "[DEBUG] Start prisma migration"
8+
npx prisma migrate deploy
99

10-
echo "[DEBUG] Starting application..."
11-
exec node dist/src/main.js
10+
echo "[DEBUG] Starting application..."
11+
exec node dist/src/main.js

0 commit comments

Comments
 (0)