mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user