fix: Update build command with COMPOSE_BAKE flag

This commit is contained in:
Gauthier Daniels 2025-04-21 18:26:45 +02:00
parent 2a9aacb1da
commit 747fe5d726

View File

@ -41,7 +41,7 @@ jobs:
VPS_PATH: ${{ secrets.VPS_PATH }}
VPS_PORT: ${{ secrets.VPS_PORT }}
run: |
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose.prod.yml build --no-cache"
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && COMPOSE_BAKE=true docker compose -f compose.prod.yml build --no-cache"
echo "📦 The application have been builded on the VPS."
- name: Start the application