Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -17,8 +17,8 @@ jobs:
|
||||
- name: Configure SSH Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
echo "StrictHostKeyChecking no" > ~/.ssh/config
|
||||
|
||||
- name: Execute Remote Deployment
|
||||
@@ -31,10 +31,10 @@ jobs:
|
||||
echo "==> Navigating to project directory..."
|
||||
cd ~/SousChefAI
|
||||
echo "==> Pulling latest code..."
|
||||
git pull origin main
|
||||
git pull origin recipeGen
|
||||
|
||||
echo "==> Building and starting container..."
|
||||
docker-compose up -d --build
|
||||
docker compose up -d --build
|
||||
|
||||
echo "==> Pruning old images..."
|
||||
docker image prune -f
|
||||
|
||||
Reference in New Issue
Block a user