mirror of
https://github.com/hectorqin/reader.git
synced 2026-11-11 13:31:09 +08:00
ci: use the repository's DOCKER_USERNAME/DOCKER_PASSWORD secrets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d7c557b066
commit
57b73abb45
2 files changed
+7
-7
No files matched your search
@@ -9,8 +9,8 @@
|
||||
# and the Vite build emulated, which is many times slower — and pushed by digest,
|
||||
# then one job stitches the digests into the multi-arch tags.
|
||||
#
|
||||
# Needs repository secrets DOCKERHUB_USERNAME and DOCKERHUB_TOKEN (a Docker Hub
|
||||
# access token with read/write on hectorqin/reader-pro).
|
||||
# Needs repository secrets DOCKER_USERNAME and DOCKER_PASSWORD (a Docker Hub
|
||||
# password or access token with read/write on hectorqin/reader-pro).
|
||||
name: Release
|
||||
|
||||
on:
|
||||
@@ -57,8 +57,8 @@ jobs:
|
||||
images: ${{ env.IMAGE }}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -106,8 +106,8 @@ jobs:
|
||||
latest=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- name: Create manifest list and push
|
||||
working-directory: ${{ runner.temp }}/digests
|
||||
|
||||
@@ -14,7 +14,7 @@ Docs (mostly Chinese) live in `docs/`; `docs/architecture.md` explains *why* thi
|
||||
|
||||
## Commands
|
||||
|
||||
Run from repo root (or `cd` into the package). CI runs install → typecheck → test → build per package: GitHub Actions `.github/workflows/ci.yml` (PRs and non-main pushes; also server, UI review, Android shell check + debug APK) and CNB `.cnb.yml`. `.github/workflows/release.yml` runs CI on main pushes and `v*` tags, then publishes the multi-arch (amd64 + arm64, native runners) image to Docker Hub `hectorqin/reader-pro` (`main`/`sha-*`, or `x.y.z`/`x.y`/`latest` for tags); it needs the `DOCKERHUB_USERNAME`/`DOCKERHUB_TOKEN` secrets. `android/scripts/check-shell.sh` checks the JS bridge contract: only `@JavascriptInterface` methods count, and each must be declared in `web/src/android-bridge.d.ts` (method syntax, `name?(): T` for optional).
|
||||
Run from repo root (or `cd` into the package). CI runs install → typecheck → test → build per package: GitHub Actions `.github/workflows/ci.yml` (PRs and non-main pushes; also server, UI review, Android shell check + debug APK) and CNB `.cnb.yml`. `.github/workflows/release.yml` runs CI on main pushes and `v*` tags, then publishes the multi-arch (amd64 + arm64, native runners) image to Docker Hub `hectorqin/reader-pro` (`main`/`sha-*`, or `x.y.z`/`x.y`/`latest` for tags); it needs the `DOCKER_USERNAME`/`DOCKER_PASSWORD` secrets. `android/scripts/check-shell.sh` checks the JS bridge contract: only `@JavascriptInterface` methods count, and each must be declared in `web/src/android-bridge.d.ts` (method syntax, `name?(): T` for optional).
|
||||
|
||||
```sh
|
||||
npm ci --prefix server && npm ci --prefix web
|
||||
|
||||
Reference in new issue
Block a user