Skip to content

Commit

Permalink
fix: update container images
Browse files Browse the repository at this point in the history
  • Loading branch information
billchurch committed Mar 4, 2025
1 parent 08bf453 commit b983c2f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Docker Build and Publish

# Note: This workflow publishes containers to:
# - Docker Hub: https://hub.docker.com/r/billchurch/bhyve-mqtt
# - GitHub Container Registry: ghcr.io/billchurch/bhyve-mqtt
on:
push:
tags:
- 'v*'
branches:
- master
release:
types: [published]

Expand Down Expand Up @@ -40,11 +38,10 @@ jobs:
billchurch/bhyve-mqtt
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=sha
type=semver,pattern={{version}},value=${{ github.event.release.tag_name }}
type=semver,pattern={{major}}.{{minor}},value=${{ github.event.release.tag_name }}
type=semver,pattern={{major}},value=${{ github.event.release.tag_name }}
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Please
on:
push:
branches:
- master
- main

permissions:
contents: write
Expand Down
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,35 @@ npm start
## Docker Usage

Use the provided Dockerfile to build and run in a container:
Pre-built images are available on both Docker Hub and GitHub Container Registry:

- Docker Hub: [billchurch/bhyve-mqtt](https://hub.docker.com/r/billchurch/bhyve-mqtt)
- GitHub Container Registry: [ghcr.io/billchurch/bhyve-mqtt](https://ghcr.io/billchurch/bhyve-mqtt)

### Supported Platforms

The Docker images are built for multiple architectures, supporting:

- `linux/amd64`: Windows, Intel Macs, standard Linux servers
- `linux/arm64`: Apple Silicon Macs, Raspberry Pi 4 (64-bit OS)
- `linux/arm/v7`: Raspberry Pi 3 and 4 (32-bit OS)
- `linux/arm/v6`: Older Raspberry Pi models (Pi Zero, Pi 1)

Docker will automatically pull the correct image for your platform when you run:

```bash
# From Docker Hub
docker pull billchurch/bhyve-mqtt:latest

# From GitHub Container Registry
docker pull ghcr.io/billchurch/bhyve-mqtt:latest
```

Version tags follow semantic versioning (e.g., `1.2.3`, `1.2`, `1`).

### Building Locally

If you prefer to build the image yourself:

```bash
# Build the image
Expand Down

0 comments on commit b983c2f

Please sign in to comment.