elmer-20 1 month ago
commit 33df6f477c

@ -20,6 +20,8 @@ env:
REGISTRY: ghcr.io
BACKEND_IMAGE: ghcr.io/${{ github.repository }}/backend
FRONTEND_IMAGE: ghcr.io/${{ github.repository }}/frontend
BACKEND_CACHE: ghcr.io/${{ github.repository }}/cache-backend
FRONTEND_CACHE: ghcr.io/${{ github.repository }}/cache-frontend
jobs:
build-backend:
@ -54,8 +56,8 @@ jobs:
with:
context: ./back
push: true
cache-from: type=gha,scope=backend
cache-to: type=gha,mode=max,scope=backend
cache-from: type=registry,ref=${{ env.BACKEND_CACHE }}
cache-to: type=registry,ref=${{ env.BACKEND_CACHE }},mode=max
tags: |
${{ env.BACKEND_IMAGE }}:latest
${{ env.BACKEND_IMAGE }}:${{ github.sha }}
@ -92,8 +94,8 @@ jobs:
with:
context: ./front
push: true
cache-from: type=gha,scope=frontend
cache-to: type=gha,mode=max,scope=frontend
cache-from: type=registry,ref=${{ env.FRONTEND_CACHE }}
cache-to: type=registry,ref=${{ env.FRONTEND_CACHE }},mode=max
build-args: |
VITE_API_URL=/api
tags: |

Loading…
Cancel
Save