From 877761c318625455ede49c7f7734e7bcba02f42f Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Wed, 18 Mar 2026 22:07:34 +0000 Subject: [PATCH 1/2] Eliminar .gitea/workflows/backup.yaml --- .gitea/workflows/backup.yaml | 59 ------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 .gitea/workflows/backup.yaml diff --git a/.gitea/workflows/backup.yaml b/.gitea/workflows/backup.yaml deleted file mode 100644 index 02f266f..0000000 --- a/.gitea/workflows/backup.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Supa-backup - -on: - pull_request: - branches: [ main ] - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - run_db_backup: - runs-on: ubuntu-latest - env: - SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} - SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} - - # MinIO / S3 config - AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET_KEY }} - AWS_DEFAULT_REGION: us-east-1 - - S3_ENDPOINT: ${{ secrets.MINIO_ENDPOINT }} - S3_BUCKET: ${{ secrets.MINIO_BUCKET }} - - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref || github.ref }} - - - uses: supabase/setup-cli@v1 - with: - version: latest - - - name: Link Project - run: supabase link --project-ref $SUPABASE_PROJECT_ID - - - name: Create backup directory - run: mkdir -p backup - - #- name: Backup roles - # run: supabase db dump -f backup/roles.sql --role-only - - #- name: Backup schema - # run: supabase db dump -f backup/schema.sql - - - name: Backup data - run: supabase db dump -f backup/data.sql --data-only - - - name: Install AWS CLI - run: | - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install - - - name: Upload to MinIO (S3) - run: | - TIMESTAMP=$(date +'%Y-%m-%d_%H-%M-%S') - - aws --endpoint-url $S3_ENDPOINT s3 cp backup/ s3://$S3_BUCKET/SUPABASE/ --recursive \ No newline at end of file From ad6fbcc220ccedb606219abdd848bfc7f91c062d Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Wed, 18 Mar 2026 22:11:51 +0000 Subject: [PATCH 2/2] Actualizar .gitea/workflows/update.yaml fix #72 --- .gitea/workflows/update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index 140de44..7257f46 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -42,10 +42,10 @@ jobs: if: steps.git_status.outputs.changed == 'true' run: | git config user.name "supabot" - git config user.email "supabot@example.com" + git config user.email "info.ingenieria@lasalle.mx" git add supabase/seed.sql git add supabase/functions/_shared/database.types.ts - git commit -m "chore: update database seed & types" + git commit -m "chore: update database seed & typescript types" - name: Push changes if: steps.git_status.outputs.changed == 'true'