Skip to content

Commit

Permalink
ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
mexmonjonovuz committed Oct 24, 2024
1 parent 3429364 commit cce8fa5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Asadbek BOT CI/CD Deployment

on:
push:
branches: [ main ]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh-key
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/Alijahon_uz
git pull
systemctl restart alijahon.service

0 comments on commit cce8fa5

Please sign in to comment.