Init Gitea

This commit is contained in:
dqj
2025-10-06 21:31:13 +09:00
commit c879b8de12
60 changed files with 41314 additions and 0 deletions

30
etc/deploy_cluster.sh Executable file
View File

@@ -0,0 +1,30 @@
# Define the path you want to deploy
DEPLOY_PATH="/Users/dqj/HDD/amiProProjects/amiprorepo/sisai-world"
# Create a temporary directory
TEMP_DIR=$(mktemp -d)
# Copy the specific path to the temporary directory
cp -r $DEPLOY_PATH/* $TEMP_DIR
# Navigate to the temporary directory
cd $TEMP_DIR
# Initialize a new Git repository
git init
# Add all files to the repository
git add .
# Commit the changes
git commit -m "Deploy sisai world"
# Add remote server repository
git remote add server1 ssh://centos@153.127.28.185/~/cicd/sisai-world-cicd.git
git remote add server2 ssh://centos@133.242.149.212/~/cicd/sisai-world-cicd.git
# Push the code to the remote server
git push --force server1 main
git push --force server2 main
rm -rf $TEMP_DIR