elmer-20 1 month ago
commit 498a668208

@ -28,6 +28,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@ -40,6 +43,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 +54,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 +76,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 }}

Loading…
Cancel
Save