Publish Docker image to GHCR on each main build (#8)

Add a Docker workflow that builds on PRs and pushes to
ghcr.io/chewbaccalakis/rfid-database on main (latest + sha) and v* tags.
Drop the redundant docker-build job from CI.

Co-authored-by: Cursor Agent <[email protected]>
This commit is contained in:
Nick Trochalakis
2026-08-24 04:10:58 +00:00
committed by GitHub
co-authored by Cursor Agent
parent 3bcdc14106
commit 443dba5bba
4 changed files with 82 additions and 10 deletions
+4
View File
@@ -1,9 +1,13 @@
services:
rfid-database:
# Local build (default):
build:
context: .
dockerfile: Dockerfile
image: rfid-database:local
# Or pull from GHCR instead of building:
# image: ghcr.io/chewbaccalakis/rfid-database:latest
# pull_policy: always
container_name: rfid-database
restart: unless-stopped
ports: