Skip to content

Commit fb1c42b

Browse files
committed
refactor: switch from Docker Hub to GitHub Container Registry (ghcr.io)
- Use ghcr.io/selfpatch/sovd_web_ui as image name - Authenticate with GITHUB_TOKEN (no extra secrets needed) - packages:write permission required for GHCR - Update README with GHCR badge and pull instructions
1 parent 3d1ff14 commit fb1c42b

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- 'v*'
1212

1313
env:
14-
IMAGE_NAME: bburda/sovd_web_ui
14+
REGISTRY: ghcr.io
15+
IMAGE_NAME: ${{ github.repository }}
1516

1617
jobs:
1718
build-and-push:
1819
runs-on: ubuntu-latest
1920
permissions:
2021
contents: read
22+
packages: write
2123

2224
steps:
2325
- name: Checkout repository
@@ -26,18 +28,19 @@ jobs:
2628
- name: Set up Docker Buildx
2729
uses: docker/setup-buildx-action@v3
2830

29-
- name: Log in to Docker Hub
31+
- name: Log in to GitHub Container Registry
3032
if: github.event_name != 'pull_request'
3133
uses: docker/login-action@v3
3234
with:
33-
username: ${{ secrets.DOCKERHUB_USERNAME }}
34-
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
registry: ${{ env.REGISTRY }}
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
3538

3639
- name: Extract metadata (tags, labels)
3740
id: meta
3841
uses: docker/metadata-action@v5
3942
with:
40-
images: ${{ env.IMAGE_NAME }}
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4144
tags: |
4245
# latest on main branch
4346
type=raw,value=latest,enable={{is_default_branch}}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# sovd_web_ui
22

33
[![CI](https://github.com/selfpatch/sovd_web_ui/actions/workflows/ci.yml/badge.svg)](https://github.com/selfpatch/sovd_web_ui/actions/workflows/ci.yml)
4-
[![Docker Hub](https://img.shields.io/docker/v/bburda/sovd_web_ui?label=Docker%20Hub&logo=docker)](https://hub.docker.com/r/bburda/sovd_web_ui)
4+
[![GHCR](https://img.shields.io/badge/GHCR-ghcr.io%2Fselfpatch%2Fsovd__web__ui-blue?logo=github)](https://github.com/selfpatch/sovd_web_ui/pkgs/container/sovd_web_ui)
55

66
Simple, open-source web UI for browsing SOVD (Service-Oriented Vehicle Diagnostics) entity trees via discovery endpoints.
77

@@ -34,9 +34,9 @@ This tool is designed for developers and integrators working with SOVD-compatibl
3434
### Using Docker
3535

3636
```bash
37-
# Pull from Docker Hub
38-
docker pull bburda/sovd_web_ui:latest
39-
docker run -p 8080:80 bburda/sovd_web_ui:latest
37+
# Pull from GitHub Container Registry
38+
docker pull ghcr.io/selfpatch/sovd_web_ui:latest
39+
docker run -p 8080:80 ghcr.io/selfpatch/sovd_web_ui:latest
4040

4141
# Or build locally
4242
docker build -t sovd_web_ui .
@@ -47,7 +47,7 @@ Then open http://localhost:8080 in your browser.
4747

4848
#### Docker Image Tags
4949

50-
Docker images are automatically published to Docker Hub via GitHub Actions:
50+
Docker images are automatically published to GitHub Container Registry via GitHub Actions:
5151

5252
| Trigger | Image Tags |
5353
|---------|------------|

0 commit comments

Comments
 (0)