Compare commits

22 Commits

Author SHA1 Message Date
b29326bd99 Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
2025-10-31 09:39:36 +03:00
8c7ad1e84c Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 8s
2025-10-31 09:33:31 +03:00
28122a0270 Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
2025-10-30 11:32:34 +03:00
c14545abff Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
2025-10-30 11:30:24 +03:00
250b5e820d Update .gitea/workflows/Aypos.yml
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
2025-10-30 11:26:50 +03:00
d1647a155f ignore local deploy.sh
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
2025-10-30 08:23:34 +00:00
4ac78b1f4e Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 43s
2025-10-30 11:17:36 +03:00
a2efe24fcc deploy aypos edit
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 41s
2025-10-30 11:14:45 +03:00
05669f8e9e Update package.json
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 44s
2025-10-30 11:08:30 +03:00
b01b5ddcbb test 8
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 45s
2025-10-30 11:03:57 +03:00
2041b76710 test 7
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 42s
2025-10-30 10:54:14 +03:00
fd467e5dcf test 6
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 45s
2025-10-30 10:49:57 +03:00
961f6ba1f4 test 5
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 44s
2025-10-30 10:32:13 +03:00
7df0cea326 test 4
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 42s
2025-10-29 17:35:15 +03:00
05a39d1e25 test 3
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 41s
2025-10-29 17:31:31 +03:00
58028d1baa test 2
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 45s
2025-10-29 17:28:01 +03:00
b19080cf3d test
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 53s
2025-10-29 17:14:18 +03:00
1e1d6bcdee make deploy.sh executable
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 44s
2025-10-29 13:50:58 +00:00
aa4b2b3150 aypos workflow -v1.1 2025-10-29 16:15:20 +03:00
8775b9515e aypos workflow -v1.1 2025-10-29 16:14:41 +03:00
4ea8a24b9e aypos workflow -v1 2025-10-29 16:13:21 +03:00
2c78e634d0 Add .gitea/workflows/Aypos.yml 2025-10-29 16:11:52 +03:00
3 changed files with 27 additions and 24 deletions

View File

@@ -0,0 +1,26 @@
name: sgeUpdated CI/CD
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
- name: Run deploy script on server
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
echo "✅ Connected to server. Running deploy script..."
cd /home/ubuntu/Bgreen/sgeUpdated
./deploy.sh
EOF

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ yarn-error.log*
# TypeScript
*.tsbuildinfo
node_modules
deploy.sh

View File

@@ -1,24 +0,0 @@
#!/bin/bash
APP_DIR="/home/ubuntu/AyposWeb"
# Navigate to your app directory
cd "$APP_DIR" || { echo "Failed to cd to $APP_DIR"; exit 1; }
# Pull latest changes from Gitea
echo "Pulling latest code..."
git pull origin main || { echo "Git pull failed"; exit 1; }
# Build your app (change this to your build command)
# For example, npm build:
echo "Installing dependencies..."
npm install || { echo "npm install failed"; exit 1; }
echo "Building app..."
npm run build || { echo "npm build failed"; exit 1; }
# Restart your app (change this to your app's restart command)
# For example, systemctl restart myapp.service:
systemctl reload nginx || { echo "Failed to reload nginx"; exit 1; }
echo "Deployment complete"