From 675cdd48836e51c2036492abbf31385638a7acc5 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 22 Apr 2026 13:23:46 +0000 Subject: [PATCH] ci: use --env-file for persistent env vars in deploy --- .gitea/workflows/deploy.yml | 4 ++-- .tablet.env | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .tablet.env diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d94bd4b..7c8ba53 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -20,5 +20,5 @@ jobs: 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' -e HA_URL=http://192.168.31.110:8123 -e NEXT_PUBLIC_APP_URL=https://tablet.digital-home.site smart-home-tablet:latest - echo 'Deploy done' + 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/smart-home-tablet/.tablet.env smart-home-tablet:latest + echo 'Done' diff --git a/.tablet.env b/.tablet.env new file mode 100644 index 0000000..7305cfa --- /dev/null +++ b/.tablet.env @@ -0,0 +1,3 @@ +HA_URL=http://192.168.31.110:8123 +HA_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzNDQyMjYwYjc4ODY0ZGFlODI5YjAxMjBjNjA1NTQ2ZCIsImlhdCI6MTc3Njg1MTgwOSwiZXhwIjoyMDkyMjExODA5fQ.U_Y-SzCPpq2L6Bj8-gwxZAfGOYBjrCGhhNLt89-eNjs +NEXT_PUBLIC_APP_URL=https://tablet.digital-home.site