This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
Deploy to Caprover #253
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |