|
|
|
|
@ -40,6 +40,8 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
context: ./back
|
|
|
|
|
push: true
|
|
|
|
|
cache-from: type=gha
|
|
|
|
|
cache-to: type=gha,mode=max
|
|
|
|
|
tags: |
|
|
|
|
|
${{ env.BACKEND_IMAGE }}:latest
|
|
|
|
|
${{ env.BACKEND_IMAGE }}:${{ github.sha }}
|
|
|
|
|
@ -49,6 +51,8 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
context: ./front
|
|
|
|
|
push: true
|
|
|
|
|
cache-from: type=gha
|
|
|
|
|
cache-to: type=gha,mode=max
|
|
|
|
|
build-args: |
|
|
|
|
|
VITE_API_URL=/api
|
|
|
|
|
tags: |
|
|
|
|
|
@ -69,6 +73,7 @@ jobs:
|
|
|
|
|
username: ${{ secrets.VPS_USER }}
|
|
|
|
|
key: ${{ secrets.VPS_SSH_KEY }}
|
|
|
|
|
port: ${{ secrets.VPS_PORT || 22 }}
|
|
|
|
|
command_timeout: 30m
|
|
|
|
|
script: |
|
|
|
|
|
cd ${{ secrets.VPS_PROJECT_PATH }}
|
|
|
|
|
|
|
|
|
|
|