Skip to content

Commit

Permalink
Update ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
David-PX authored Oct 3, 2024
1 parent 0037b3f commit e1d302e
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,3 @@ jobs:
# 4. Ejecutar pruebas
- name: Run tests
run: npm test

deploy:
needs: build-and-test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && success()

env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_EXPIRATION: '6h'
DB_PORT: 5432
NODE_ENV: production
PORT: 3000

steps:
# 1. Checkout del código
- name: Checkout code
uses: actions/checkout@v3

# 2. Instalar CLI de Render
- name: Install Render CLI
run: |
curl -fsSL https://cli.render.com/install.sh | sudo bash
# 3. Desplegar en Render
- name: Deploy to Render
run: |
render deploy --service ${{ secrets.RENDER_SERVICE_ID }} --api-key ${{ secrets.RENDER_API_KEY }}

0 comments on commit e1d302e

Please sign in to comment.