elmer-20 1 month ago
commit 33df6f477c

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

Loading…
Cancel
Save