Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend-data-crawler-be
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
BangNSK
frontend-data-crawler-be
Commits
2993f3a4
Commit
2993f3a4
authored
Jul 21, 2026
by
SaoBien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy vercel
parent
dea39a22
Pipeline
#51884
passed with stage
in 1 minute and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
.gitignore
.gitignore
+3
-0
.gitlab-ci.yml
.gitlab-ci.yml
+35
-0
No files found.
.gitignore
View file @
2993f3a4
...
...
@@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.vercel
.env*
.env
\ No newline at end of file
.gitlab-ci.yml
0 → 100644
View file @
2993f3a4
stages
:
-
deploy
deploy_job
:
stage
:
deploy
before_script
:
-
npm install -g vercel 2>/dev/null
script
:
-
|
DEPLOY_OUTPUT=$(vercel deploy \
--token=$VERCEL_TOKEN \
--yes \
2>&1)
echo "=== Full output ==="
echo "$DEPLOY_OUTPUT"
# Grep lấy đúng URL dạng https://xxx.vercel.app
DEPLOY_URL=$(echo "$DEPLOY_OUTPUT" | grep -Eo 'https://[a-zA-Z0-9._-]+\.vercel\.app' | head -1)
echo "Deploy URL: $DEPLOY_URL"
if [ -z "$DEPLOY_URL" ]; then
echo "ERROR: Không lấy được deploy URL!"
exit 1
fi
vercel alias set "$DEPLOY_URL" staging-$CI_PROJECT_NAME.vercel.app \
--token=$VERCEL_TOKEN
echo "Staging URL: https://staging-$CI_PROJECT_NAME.vercel.app"
tags
:
-
runner-vpd-que
only
:
-
staging
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