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