elmer-20 2 months ago
commit 498a668208

@ -28,6 +28,9 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -40,6 +43,8 @@ jobs:
with: with:
context: ./back context: ./back
push: true push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: | tags: |
${{ env.BACKEND_IMAGE }}:latest ${{ env.BACKEND_IMAGE }}:latest
${{ env.BACKEND_IMAGE }}:${{ github.sha }} ${{ env.BACKEND_IMAGE }}:${{ github.sha }}
@ -49,6 +54,8 @@ jobs:
with: with:
context: ./front context: ./front
push: true push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: | build-args: |
VITE_API_URL=/api VITE_API_URL=/api
tags: | tags: |
@ -69,6 +76,7 @@ jobs:
username: ${{ secrets.VPS_USER }} username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }} key: ${{ secrets.VPS_SSH_KEY }}
port: ${{ secrets.VPS_PORT || 22 }} port: ${{ secrets.VPS_PORT || 22 }}
command_timeout: 30m
script: | script: |
cd ${{ secrets.VPS_PROJECT_PATH }} cd ${{ secrets.VPS_PROJECT_PATH }}

Loading…
Cancel
Save