Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Deploy to Caprover #254

Deploy to Caprover

Deploy to Caprover #254

Workflow file for this run

name: Deploy to Caprover
permissions: read-all
on:
registry_package:
types: [published]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Deploy Image to CapRrover
uses: caprover/[email protected]
with:
server: "${{ secrets.CAPROVER_SERVER }}"
app: healthcheck
token: "${{ secrets.CAPROVER_TOKEN }}"
image: ghcr.io/eddiehubcommunity/healthcheck:latest
migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.4
- name: install dependencies
run: npm ci
- name: run migrations
run: npm run db:migrate:prod
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}