From 07b9b38e4333a53958076467741279e0aca70cbf Mon Sep 17 00:00:00 2001 From: Anghelo Flores Date: Mon, 16 Mar 2026 08:46:13 -0500 Subject: [PATCH] =?UTF-8?q?ci:=20usar=20cache=20de=20registry=20en=20lugar?= =?UTF-8?q?=20de=20GHA=20para=20evitar=20expiraci=C3=B3n=20de=207=20d?= =?UTF-8?q?=C3=ADas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9f6483e..5633d65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: |