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
0d10f9d2
Commit
0d10f9d2
authored
Aug 04, 2026
by
SaoBien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9f29b2f6
Pipeline
#52283
passed with stage
in 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
42 deletions
+2
-42
.gitlab-ci.yml
.gitlab-ci.yml
+2
-42
No files found.
.gitlab-ci.yml
View file @
0d10f9d2
stages
:
-
deploy
deploy_job
:
stage
:
deploy
script
:
-
|
DEPLOY_OUTPUT=$(npx --yes vercel deploy \
--prod \
--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
npx --yes 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
stages
:
-
deploy
deploy_job
:
stage
:
deploy
before_script
:
...
...
@@ -43,6 +8,7 @@ deploy_job:
script
:
-
|
DEPLOY_OUTPUT=$(vercel deploy \
--prod \
--token=$VERCEL_TOKEN \
--yes \
2>&1)
...
...
@@ -50,20 +16,14 @@ deploy_job:
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"
echo "
Production
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
:
...
...
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