Files
sgeUpdated/.gitea/workflows/sgeupdated.yml
Abdulbari dd1083db82
Some checks failed
sgeUpdated CI/CD / deploy (push) Failing after 12s
Update .gitea/workflows/sgeupdated.yml
2025-10-28 15:33:14 +03:00

27 lines
642 B
YAML

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