Description
Automate Docker image builds and publish them to GitHub Container Registry (GHCR) on each tagged release.
Current state
The project has a Dockerfile that builds a production image using node:20-alpine, but images are only built locally. Users must clone the repo and build manually.
Proposal
Add a GitHub Actions workflow that:
- Triggers on tag push (
v*)
- Builds the Docker image using the existing
Dockerfile
- Pushes to
ghcr.io/lnp2pbot/bot:vX.Y.Z and ghcr.io/lnp2pbot/bot:latest
- Uses multi-platform builds (amd64 + arm64) for broader deployment support
Benefits
- Operators can pull pre-built images instead of building from source
- Consistent, reproducible deployments
- Version-pinned images for production stability
- Enables easier Docker Compose / Kubernetes deployments
Description
Automate Docker image builds and publish them to GitHub Container Registry (GHCR) on each tagged release.
Current state
The project has a
Dockerfilethat builds a production image usingnode:20-alpine, but images are only built locally. Users must clone the repo and build manually.Proposal
Add a GitHub Actions workflow that:
v*)Dockerfileghcr.io/lnp2pbot/bot:vX.Y.Zandghcr.io/lnp2pbot/bot:latestBenefits