Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
upgrade-data-crawler-fe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ThinhNC
upgrade-data-crawler-fe
Commits
1dfd43b5
Commit
1dfd43b5
authored
Sep 10, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' into 'develop'
Staging See merge request
!20
parents
39dc4fec
d6084364
Pipeline
#53077
passed with stage
in 2 minutes and 3 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletion
+61
-1
.gitignore
.gitignore
+5
-1
.gitlab-ci.yml
.gitlab-ci.yml
+56
-0
No files found.
.gitignore
View file @
1dfd43b5
...
@@ -34,9 +34,13 @@ yarn-error.log*
...
@@ -34,9 +34,13 @@ yarn-error.log*
.env*
.env*
!.env.example
!.env.example
# vercel
# vercel
& build cache
.vercel
.vercel
.pnpm-store
# typescript
# typescript
*.tsbuildinfo
*.tsbuildinfo
next-env.d.ts
next-env.d.ts
.vercel
.env*
.gitlab-ci.yml
0 → 100644
View file @
1dfd43b5
# GitLab CI/CD Pipeline for deploying Next.js to Vercel using Vercel CLI
# Standard template matching official Vercel documentation:
# https://vercel.com/kb/guide/how-can-i-use-gitlab-pipelines-with-vercel
image
:
node:20
stages
:
-
deploy
# 1. Preview Deployment (Tất cả các nhánh tính năng trừ staging, main)
deploy_preview
:
stage
:
deploy
tags
:
-
runner-builder
except
:
-
staging
-
main
before_script
:
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
npm install -g pnpm vercel
script
:
-
vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
-
vercel build --token=$VERCEL_TOKEN
-
vercel deploy --prebuilt --token=$VERCEL_TOKEN
variables
:
VERCEL_ORG_ID
:
$VERCEL_ORG_ID
VERCEL_PROJECT_ID
:
$VERCEL_PROJECT_ID
# 2. Production Deployment (Kích hoạt khi push lên nhánh staging, main)
deploy_production
:
stage
:
deploy
tags
:
-
runner-builder
only
:
-
staging
-
main
before_script
:
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
npm install -g pnpm vercel
script
:
-
vercel pull --yes --environment=production --token=$VERCEL_TOKEN
-
vercel build --prod --token=$VERCEL_TOKEN
-
vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
variables
:
VERCEL_ORG_ID
:
$VERCEL_ORG_ID
VERCEL_PROJECT_ID
:
$VERCEL_PROJECT_ID
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment