ci: add Docker CD workflow to push images to GHCR

Multi-stage Dockerfile for smaller runtime image, CD workflow triggers
on main branch pushes and version tags, docker-compose defaults to the
prebuilt GHCR image.
This commit is contained in:
Houmgaor
2026-02-17 00:28:37 +01:00
parent 220de4cf3b
commit 7d54dd0ee6
3 changed files with 54 additions and 27 deletions

View File

@@ -38,9 +38,11 @@ services:
depends_on:
db:
condition: service_healthy
# If using prebuilt container change paths and config
build:
context: ../
image: ghcr.io/mezeporta/erupe:main
# To build locally instead of using the prebuilt image, comment out
# the 'image' line above and uncomment the 'build' section below:
# build:
# context: ../
volumes:
- ../config.json:/app/erupe/config.json
- ../bin:/app/erupe/bin