Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/loginfix #75

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/mainServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading