Add self-referential parent/child relation on AffirmationCategory for one-level hierarchy. Update AffirmationForm with two-level category and sub-category dropdowns, server actions with find-or-create hierarchy logic, AffirmationList with Parent
40 lines
987 B
YAML
40 lines
987 B
YAML
# .github/workflows/deploy.yml
|
|
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run migrations
|
|
run: |
|
|
set -a
|
|
source /mnt/volume_nyc3_01/Portal/.env
|
|
set +a
|
|
export DO_CA_CERTIFICATE=/etc/ssl/certs/do-ca-certificate.crt
|
|
npx prisma migrate deploy
|
|
|
|
- name: Build image
|
|
run: podman build -t portal:latest .
|
|
|
|
- name: Stop old container
|
|
run: podman stop portal || true && podman rm portal || true
|
|
|
|
- name: Start new container
|
|
run: |
|
|
podman run -d --name portal \
|
|
--replace \
|
|
--restart=always \
|
|
--network=host \
|
|
-v /mnt/volume_nyc3_01/Portal/.env:/app/.env:ro \
|
|
-v /etc/ssl/certs/do-ca-certificate.crt:/etc/ssl/certs/do-ca-certificate.crt:ro \
|
|
portal:latest
|