From aa592f64c73b32b51a72d489cb693197c8952f1a Mon Sep 17 00:00:00 2001 From: Moya30 Date: Wed, 18 Dec 2024 23:07:53 -0500 Subject: [PATCH] feat: add envi paypal --- .github/workflows/mainClient.yml | 2 ++ client/Dockerfile | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/mainClient.yml b/.github/workflows/mainClient.yml index 5ea501fc..2fa80967 100644 --- a/.github/workflows/mainClient.yml +++ b/.github/workflows/mainClient.yml @@ -60,6 +60,8 @@ jobs: run: | docker build \ --build-arg NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }} \ + --build-arg NEXT_PUBLIC_CLIENT_ID=${NEXT_PUBLIC_CLIENT_ID} \ + --build-arg CLIENT_SECRET=${CLIENT_SECRET} \ -t $GCLOUD_REGION-docker.pkg.dev/${{ secrets.GCLOUD_PROJECT_ID }}/klowhubnext-client/klowhub-client:${{ github.sha }} . # 6.5. Limpiar imágenes antiguas diff --git a/client/Dockerfile b/client/Dockerfile index d33150b7..c25eaa2b 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -20,6 +20,10 @@ COPY . . ARG NEXT_PUBLIC_API_URL ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL ENV NEXT_PUBLIC_APP_URL=https://klowhub-800663783731.southamerica-east1.run.app/ +ARG NEXT_PUBLIC_CLIENT_ID +ENV NEXT_PUBLIC_CLIENT_ID=$NEXT_PUBLIC_CLIENT_ID +ARG CLIENT_SECRET +ENV CLIENT_SECRET=$CLIENT_SECRET ENV NODE_ENV=production ENV PORT=4002