AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(platform/ci): Add prod migrations (#8396)
Aarushid9b8e0d273a6
diff --git a/.github/workflows/platform-autgpt-deploy-prod.yml b/.github/workflows/platform-autgpt-deploy-prod.ymlindex b0d94526ed..97013715db 100644--- a/.github/workflows/platform-autgpt-deploy-prod.yml+++ b/.github/workflows/platform-autgpt-deploy-prod.yml@@ -15,6 +15,39 @@ env:NAMESPACE: prod-agptjobs:+ migrate:+ environment: production+ name: Run migrations for AutoGPT Platform+ runs-on: ubuntu-latest++ steps:+ - name: Checkout code+ uses: actions/checkout@v2++ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: '3.11'++ - name: Install Python dependencies+ run: |+ python -m pip install --upgrade pip+ pip install prisma++ - name: Run Backend Migrations+ working-directory: ./autogpt_platform/backend+ run: |+ python -m prisma migrate deploy+ env:+ DATABASE_URL: ${{ secrets.BACKEND_DATABASE_URL }}++ - name: Run Market Migrations+ working-directory: ./autogpt_platform/market+ run: |+ python -m prisma migrate deploy+ env:+ DATABASE_URL: ${{ secrets.MARKET_DATABASE_URL }}+build-push-deploy:environment: productionname: Build, Push, and Deploy