Skip to content

Commit

Permalink
[revert] cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilsharmaa committed Dec 13, 2024
1 parent 0205707 commit ff041fc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,7 @@ jobs:
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
if [ -d "ornatewall-server-app" ]; then
echo "Repository exists. Pulling latest changes..."
cd ornatewall-server-app
git reset --hard
git pull origin main
else
echo "Cloning repository..."
git clone https://github.com/akhilsharmaa/ornatewall-server-app.git
cd ornatewall-server-app
fi
cd ornatewall-server-app
sudo docker-compose down || true
sudo docker-compose pull
sudo docker-compose up --build --no-cache -d
sudo docker-compose up --build --verbose

0 comments on commit ff041fc

Please sign in to comment.