Build API v2
This commit is contained in:
@@ -30,3 +30,25 @@ jobs:
|
||||
run: |
|
||||
docker push registry.digitalocean.com/radiantwave-portal-container-registry/portal:${{ gitea.sha }}
|
||||
docker push registry.digitalocean.com/radiantwave-portal-container-registry/portal:latest
|
||||
|
||||
migrate:
|
||||
needs: build-and-push
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run database migrations
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
NODE_EXTRA_CA_CERTS: ./digital-ocean.crt
|
||||
run: npm run deploy
|
||||
|
||||
Reference in New Issue
Block a user