Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
customer-recall
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
customer-recall
Commits
7e8fab52
Commit
7e8fab52
authored
Aug 16, 2025
by
yiling.shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete GitLab CI configuration with SSH deployment and backup verification
parent
7e51c81e
Pipeline
#3186
failed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
.gitlab-ci.yml
+16
-2
No files found.
.gitlab-ci.yml
View file @
7e8fab52
...
...
@@ -11,7 +11,7 @@ deploy_to_production:
-
jarvis
before_script
:
-
'
which
ssh-agent
||
(
apk
add
--update
--no-cache
openssh-client
)'
-
eval $(ssh-agent -s)
-
'
eval
$(ssh-agent
-s)'
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
...
...
@@ -20,7 +20,21 @@ deploy_to_production:
script
:
-
echo "Starting production deployment"
-
echo "SSH connection setup completed"
-
echo "Ready for deployment commands"
-
echo "Testing SSH connection"
-
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "echo 'SSH connection successful'"
-
echo "SSH connection test completed"
-
echo "Uploading deployment script"
-
scp -P $SSH_PORT deploy_scripts/deploy_with_backup.sh $SSH_USER@$SSH_HOST:/tmp/
-
echo "Setting script permissions"
-
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "chmod +x /tmp/deploy_with_backup.sh"
-
echo "Executing deployment script"
-
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "/tmp/deploy_with_backup.sh"
-
echo "Checking deployment status"
-
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose ps"
-
echo "Checking backup files"
-
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "ls -lh /backup/database/production_backup_*.sql 2>/dev/null || echo 'No backup files found'"
-
echo "Deployment completed successfully"
-
echo "Deployment finished"
only
:
-
master
...
...
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