Deploy from a Gitea registry image instead of building on the server
CI/CD / test (push) Failing after 7m19s
CI/CD / publish (push) Skipped
CI/CD / deploy (push) Skipped

CI now builds and pushes the image to the Gitea container registry, links
the package, and the deploy job ships only deploy/docker-compose.yml and an
.env naming the image to /opt/vending-machine-game.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 10:46:57 +03:30
co-authored by Claude Sonnet 5.5
parent 9832f303e8
commit 894e3e25c6
2 changed files with 77 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
# Server deployment: runs the prebuilt image from the Gitea registry behind Nginx Proxy Manager.
# NPM terminates HTTPS and forwards to http://vending-machine-game:80 on the frontend_proxy network.
# IMAGE is set in .env next to this file (CI writes it on every deploy).
services:
game:
image: ${IMAGE:?set IMAGE in .env}
container_name: vending-machine-game
restart: unless-stopped
environment:
# Plain HTTP inside the network; no host ports are published.
SITE_ADDRESS: ":80"
networks:
- frontend_proxy
networks:
frontend_proxy:
external: true