Update .gitea/workflows/deploy.yml
Some checks failed
Deploy to Production / deploy (push) Failing after 6s
Some checks failed
Deploy to Production / deploy (push) Failing after 6s
This commit is contained in:
@@ -16,6 +16,10 @@ jobs:
|
|||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
|
# Clone repo if it doesn't exist
|
||||||
|
if [ ! -d "/var/www/caloriethingy.com/.git" ]; then
|
||||||
|
git clone https://git.sometimescode.com/cgsmith/caloriethingy.com.git /var/www/caloriethingy.com
|
||||||
|
fi
|
||||||
cd /var/www/caloriethingy.com
|
cd /var/www/caloriethingy.com
|
||||||
git pull origin main
|
git pull origin main
|
||||||
composer install --no-dev --optimize-autoloader
|
composer install --no-dev --optimize-autoloader
|
||||||
|
|||||||
Reference in New Issue
Block a user