Skip to content

Commit

Permalink
Update dev-server-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Jan 17, 2025
1 parent 8e9f915 commit 923e988
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/dev-server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy to PRAHTAM-DEV
name: Deploy to PRAHTAM-DEV

on:
push:
branches:
- main

jobs:
deploy_DEV:
runs-on: ubuntu-latest
Expand All @@ -21,13 +22,11 @@ jobs:
git stash
git pull --all
if [ -f .env ]; then
rm .env
rm .env
fi
echo "${{ secrets.DEV_ENV }}" > .env
ls -ltra
docker-compose -f docker-compose.teachers.yml
docker system prune -af
sleep 10
timeout 90000 docker-compose -f docker-compose.teachers.yml up -d
docker-compose -f docker-compose.teachers.yml down
docker-compose -f docker-compose.teachers.yml pull
timeout 3600 docker-compose -f docker-compose.teachers.yml up -d | tee docker-compose.log
sudo systemctl restart nginx

0 comments on commit 923e988

Please sign in to comment.