Skip to content

Commit 0431ad9

Browse files
cevhericlaude
andauthored
ci(docker): drop Docker Hub README auto-sync (PAT can't edit description) (#64)
The dockerhub-readme job failed with 403 Forbidden: Docker Hub Personal Access Tokens authenticate but cannot update a repository's description/ overview (that endpoint requires the account password). Rather than store the account password in CI, remove the auto-sync job — the overview is set once manually from DOCKERHUB.md, which stays in the repo as the source of truth. This also un-reds main: the failing cosmetic job no longer fails the otherwise successful image build/push. Drops the now-unused dockerhub_enabled output and updates the DOCKERHUB.md footer (no longer auto-synced). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 55405b6 commit 0431ad9

2 files changed

Lines changed: 1 addition & 30 deletions

File tree

.github/workflows/docker-build-push.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
outputs:
3535
version: ${{ steps.extract-version.outputs.version }}
3636
image: ${{ steps.meta.outputs.tags }}
37-
dockerhub_enabled: ${{ steps.dockerhub.outputs.enabled }}
3837

3938
steps:
4039
- name: Checkout code
@@ -169,31 +168,3 @@ jobs:
169168
echo "${{ steps.meta.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
170169
echo '```' >> $GITHUB_STEP_SUMMARY
171170
172-
# Mirror the Docker Hub repository overview from DOCKERHUB.md after each main
173-
# build. Runs only on main and only when Docker Hub is configured
174-
# (DOCKER_HUB_USERNAME variable present), so forks are unaffected.
175-
dockerhub-readme:
176-
name: Sync Docker Hub README
177-
needs: build-and-push
178-
# Run only on main, only when Docker Hub is fully configured: the token
179-
# (checked via the build job's dockerhub_enabled output — secrets can't be
180-
# read in an `if:`) AND the username variable.
181-
if: ${{ github.ref == 'refs/heads/main' && needs.build-and-push.outputs.dockerhub_enabled == 'true' && vars.DOCKER_HUB_USERNAME != '' }}
182-
runs-on: ubuntu-latest
183-
# Only needs to read the repo to checkout DOCKERHUB.md; the Docker Hub
184-
# update authenticates with DOCKER_HUB_TOKEN, not GITHUB_TOKEN.
185-
permissions:
186-
contents: read
187-
steps:
188-
- name: Checkout code
189-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
190-
191-
- name: Update Docker Hub repository description
192-
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
193-
with:
194-
username: ${{ vars.DOCKER_HUB_USERNAME }}
195-
password: ${{ secrets.DOCKER_HUB_TOKEN }}
196-
repository: ${{ vars.DOCKER_HUB_USERNAME }}/libredb-studio
197-
short-description: "Open-source AI-powered web SQL IDE — Postgres, MySQL, Mongo, Redis, Oracle, MSSQL, SQLite"
198-
readme-filepath: ./DOCKERHUB.md
199-

DOCKERHUB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ Health check endpoint: `GET /api/db/health` · Container HTTP port: `3000`.
158158
- **DeepWiki docs:** <https://deepwiki.com/libredb/libredb-studio>
159159
- **License:** MIT
160160

161-
<sub>This page is generated from <a href="https://github.com/libredb/libredb-studio/blob/main/DOCKERHUB.md">DOCKERHUB.md</a> and synced automatically on every <code>main</code> build.</sub>
161+
<sub>This page mirrors <a href="https://github.com/libredb/libredb-studio/blob/main/DOCKERHUB.md">DOCKERHUB.md</a> in the GitHub repository.</sub>

0 commit comments

Comments
 (0)