Skip to content

Commit

Permalink
fix: syncing with remote repo
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Apr 15, 2024
1 parent e9d3bb2 commit b7898ae
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/tsg-site/frontend || 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/tsg-site-frontend .

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

0 comments on commit b7898ae

Please sign in to comment.