From 7151f905ac0ca76bb32d659daeafd30202f52dde Mon Sep 17 00:00:00 2001 From: Moya30 Date: Tue, 10 Dec 2024 14:50:49 -0500 Subject: [PATCH 1/2] fix: nueva ruta --- client/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Dockerfile b/client/Dockerfile index 6276a79d..cb2cfa44 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -19,7 +19,7 @@ COPY . . ARG NEXT_PUBLIC_API_URL ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL -ENV NEXT_PUBLIC_APP_URL=https://klowhub-824410275969.southamerica-east1.run.app +ENV NEXT_PUBLIC_APP_URL=https://klowhub-800663783731.southamerica-east1.run.app ENV NODE_ENV=production ENV PORT=4002 From 0068fafe9fa363641802fc6c06bfe698075f8486 Mon Sep 17 00:00:00 2001 From: Moya30 Date: Tue, 10 Dec 2024 14:53:06 -0500 Subject: [PATCH 2/2] fix: main server --- .github/workflows/mainServer.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/mainServer.yml b/.github/workflows/mainServer.yml index 88a48876..baa153b0 100644 --- a/.github/workflows/mainServer.yml +++ b/.github/workflows/mainServer.yml @@ -141,31 +141,6 @@ jobs: working-directory: ./server run: docker push ${{ env.ARTIFACT_REGISTRY_BASE }}/${{ env.GATEWAY_SERVICE_NAME }}:${{ github.sha }} - # 15. Limpiar los nombres de revisiones - - name: Clean up old Cloud Run revisions - run: | - for SERVICE in $GCR_SERVICE_NAME $COURSE_SERVICE_NAME $UPLOAD_SERVICE_NAME $USERS_SERVICE_NAME $GATEWAY_SERVICE_NAME - do - echo "Cleaning up revisions for service: $SERVICE" - REVISIONS=$(gcloud run revisions list \ - --service=$SERVICE \ - --region=${{ secrets.GCLOUD_REGION }} \ - --sort-by=~creation_timestamp \ - --format="value(name)") - REVISION_COUNT=$(echo "$REVISIONS" | wc -l) - if [ $REVISION_COUNT -gt 1 ]; then - REVISIONS_TO_DELETE=$(echo "$REVISIONS" | tail -n +2) - for REVISION in $REVISIONS_TO_DELETE - do - echo "Deleting revision: $REVISION" - gcloud run revisions delete $REVISION \ - --region=${{ secrets.GCLOUD_REGION }} \ - --quiet || echo "Could not delete revision $REVISION" - done - else - echo "No old revisions to delete for $SERVICE" - fi - done # 16. Despliegue en Cloud Run - name: Deploy Gateway Service