Skip to content

Commit 991304d

Browse files
committed
Use github packages
1 parent 7776333 commit 991304d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*.*.*'
77

88
env:
9-
REGISTRY: docker.io
9+
REGISTRY: ghcr.io
1010
IMAGE_NAME: richardr1126/openreader-webui
1111

1212
jobs:
@@ -26,11 +26,12 @@ jobs:
2626
- name: Set up Docker Buildx
2727
uses: docker/setup-buildx-action@v3
2828

29-
- name: Login to Docker Hub
29+
- name: Login to GitHub Container Registry
3030
uses: docker/login-action@v3
3131
with:
32-
username: ${{ secrets.DOCKERHUB_USERNAME }}
33-
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
registry: ${{ env.REGISTRY }}
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
3435

3536
- name: Extract metadata for Docker
3637
id: meta
@@ -50,4 +51,4 @@ jobs:
5051
tags: ${{ steps.meta.outputs.tags }}
5152
labels: ${{ steps.meta.outputs.labels }}
5253
cache-from: type=gha
53-
cache-to: type=gha,mode=max
54+
cache-to: type=gha,mode=max

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
[![GitHub Last Commit](https://img.shields.io/github/last-commit/richardr1126/OpenReader-WebUI)](../../commits)
66
[![GitHub Release](https://img.shields.io/github/v/release/richardr1126/OpenReader-WebUI)](../../releases)
77

8-
[![Docker Image Size](https://img.shields.io/docker/image-size/richardr1126/openreader-webui/latest)](https://hub.docker.com/r/richardr1126/openreader-webui)
9-
[![Docker Image Version](https://img.shields.io/docker/v/richardr1126/openreader-webui/latest?label=latest%20docker)](https://hub.docker.com/r/richardr1126/openreader-webui/tags)
10-
[![Docker Hub](https://img.shields.io/docker/pulls/richardr1126/openreader-webui)](https://hub.docker.com/r/richardr1126/openreader-webui)
8+
[![Container Image Size](https://img.shields.io/badge/dynamic/json?color=blue&label=image%20size&query=size&url=https://api.github.com/repos/richardr1126/OpenReader-WebUI/packages/container/openreader-webui/versions)](https://github.com/richardr1126/OpenReader-WebUI/pkgs/container/openreader-webui)
9+
[![Container Version](https://img.shields.io/github/v/release/richardr1126/OpenReader-WebUI?label=container)](https://github.com/richardr1126/OpenReader-WebUI/pkgs/container/openreader-webui)
1110

1211

1312
# OpenReader WebUI 📄🔊
@@ -42,7 +41,7 @@ https://github.com/user-attachments/assets/262b9a01-c608-4fee-893c-9461dd48c99b
4241
docker run --name openreader-webui \
4342
-p 3003:3003 \
4443
-v openreader_docstore:/app/docstore \
45-
richardr1126/openreader-webui:latest
44+
ghcr.io/openreader-webui:latest
4645
```
4746

4847
(Optionally): Set the TTS `API_BASE` URL and/or `API_KEY` to be default for all devices
@@ -51,7 +50,7 @@ docker run --name openreader-webui \
5150
-e API_BASE=http://host.docker.internal:8880/v1 \
5251
-p 3003:3003 \
5352
-v openreader_docstore:/app/docstore \
54-
richardr1126/openreader-webui:latest
53+
ghcr.io/openreader-webui:latest
5554
```
5655

5756
> Requesting audio from the TTS API happens on the Next.js server not the client. So the base URL for the TTS API should be accessible and relative to the Next.js server. If it is in a Docker you may need to use `host.docker.internal` to access the host machine, instead of `localhost`.
@@ -63,7 +62,7 @@ Visit [http://localhost:3003](http://localhost:3003) to run the app and set your
6362
### ⬆️ Update Docker Image
6463
```bash
6564
docker stop openreader-webui && docker rm openreader-webui
66-
docker pull richardr1126/openreader-webui:latest
65+
docker pull ghcr.io/openreader-webui:latest
6766
```
6867

6968
### Adding to a Docker Compose (i.e. with open-webui or Kokoro-FastAPI)
@@ -75,7 +74,7 @@ volumes:
7574
services:
7675
openreader-webui:
7776
container_name: openreader-webui
78-
image: richardr1126/openreader-webui:latest
77+
image: ghcr.io/openreader-webui:latest
7978
environment:
8079
- API_BASE=http://host.docker.internal:8880/v1
8180
ports:

0 commit comments

Comments
 (0)