fix: Use hardcoded repository URL instead of gitea context variable
Some checks failed
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Failing after 1s

This commit is contained in:
SysAdmin 2025-11-16 21:11:13 +00:00
parent 8a70e4aad1
commit 5951e2a89a

View File

@ -39,7 +39,11 @@ jobs:
# Navigate to deployment directory # Navigate to deployment directory
cd /opt/littleshop cd /opt/littleshop
# Pull latest code # Clone or pull latest code
if [ ! -d .git ]; then
echo "Cloning repository..."
git clone https://git.silverlabs.uk/Jamie/littleshop.git .
fi
echo "Pulling latest code from git..." echo "Pulling latest code from git..."
git fetch origin git fetch origin
git checkout $VERSION || git checkout main git checkout $VERSION || git checkout main
@ -177,7 +181,7 @@ jobs:
# Clone or pull latest code # Clone or pull latest code
if [ ! -d .git ]; then if [ ! -d .git ]; then
echo "Cloning repository..." echo "Cloning repository..."
git clone ${{ gitea.repositoryUrl }} . git clone https://git.silverlabs.uk/Jamie/littleshop.git .
fi fi
echo "Pulling latest code from git..." echo "Pulling latest code from git..."
git fetch origin git fetch origin