Skip to content

Commit

Permalink
fix: remote repo syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Apr 15, 2024
1 parent c60d8db commit 45100b1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/cicd.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/bin/bash

# Make sure we are in the correct directory
cd /home/techcoordi/noticeboard || exit 1
git pull origin main

# Sync with remote repository
git fetch origin
git reset --hard origin/main

# Build Stage
sudo docker build -t proffapt/noticeboard .

# Deploy Stage
sudo docker-compose down
sudo docker-compose up -d

0 comments on commit 45100b1

Please sign in to comment.