Skip to content

Fix activity sorting (#5823) #1

Fix activity sorting (#5823)

Fix activity sorting (#5823) #1

name: Deploy backend and db migrations on PoC environment
concurrency:
group: do-poc
permissions: {}
on:
push:
branches:
- main
jobs:
deploy-backend:
name: Deploy backend
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Login to DO container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DO_POC_USER }}
password: ${{ secrets.DO_POC_TOKEN }}
registry: ${{ secrets.DO_POC_REGISTRY }}
- name: Build and publish containers
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile.backend
build-args: |
TURBO_TEAM=${{ vars.TURBO_TEAM }}
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
tags: |
${{ secrets.DO_POC_REGISTRY }}/l2beat/backend
migrate-db:
name: Apply DB migrations
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install dependencies
run: pnpm install
- name: Apply migrations
run: pnpm prisma migrate deploy --schema=packages/database/prisma/schema.prisma
env:
PRISMA_DB_URL: ${{ secrets.DO_POC_DATABASE_URL }}