Files
smart-home-tablet/.gitea/workflows/deploy.yml
Cosmo b0fb9d0c54
All checks were successful
Deploy / deploy (push) Successful in 4m35s
fix: 4 bugs — MSK today events, settings scroll, note dates, persistent notes volume
- calendar API: today/week ranges use Moscow time (UTC+3) instead of UTC — previously today events did not appear until 03:00 MSK
- settings tab: add -webkit-overflow-scrolling: touch + touchAction pan-y for tablet scroll
- NotesTab: add date picker (pinDate) in editor header + date badge in list
- home: pinnedNotes now filters by pinDate (today or future), falls back to latest
- notes/auth: storage moved from /tmp to /data (falls back to /tmp if /data missing)
- deploy workflow: mount /opt/digital-home/smart-home-tablet-data:/data so notes survive redeploys
2026-04-23 06:13:16 +00:00

35 lines
1.3 KiB
YAML

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Build and deploy
run: |
apk add --no-cache docker-cli git
cd /opt/digital-home/smart-home-tablet
git config --global --add safe.directory /opt/digital-home/smart-home-tablet
git pull origin main
docker build -t smart-home-tablet:latest .
docker stop tablet-yfh53kixpwkjlo4zibglx4n2 || true
docker rm tablet-yfh53kixpwkjlo4zibglx4n2 || true
docker run -d \
--name tablet-yfh53kixpwkjlo4zibglx4n2 \
--network coolify \
-p 3006:3000 \
--restart unless-stopped \
--label traefik.enable=true \
--label 'traefik.http.routers.tablet.rule=Host(`tablet.digital-home.site`)' \
--label traefik.http.routers.tablet.entrypoints=https \
--label traefik.http.routers.tablet.tls=true \
--label traefik.http.routers.tablet.tls.certresolver=letsencrypt \
--label traefik.http.services.tablet.loadbalancer.server.port=3000 \
--env-file /opt/digital-home/tablet.env \
-v /opt/digital-home/smart-home-tablet-data:/data \
smart-home-tablet:latest
echo 'Deploy done'