Publish Docker image to GHCR on main builds

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.
This commit is contained in:
Cursor Agent
2026-08-24 04:06:00 +00:00
parent 3bcdc14106
commit 8ba92654c0
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: