Skip to content

Commit 44802eb

Browse files
committed
ci: 移除 Docker Hub 依赖,镜像仅推送 GHCR
去掉 DOCKERHUB_USERNAME/DOCKERHUB_TOKEN 登录步骤与 Docker Hub 镜像标签,只推送 ghcr.io/kxhubs/it-tools,避免因未配置 secrets 导致构建失败
1 parent 701caa4 commit 44802eb

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

.github/workflows/docker-nightly-release.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ jobs:
6363
username: ${{ github.repository_owner }}
6464
password: ${{ secrets.GITHUB_TOKEN }}
6565

66-
- name: Login to Docker Hub
67-
uses: docker/login-action@v3
68-
with:
69-
username: ${{ secrets.DOCKERHUB_USERNAME }}
70-
password: ${{ secrets.DOCKERHUB_TOKEN }}
71-
7266
- name: Set up QEMU
7367
uses: docker/setup-qemu-action@v3
7468

@@ -83,5 +77,4 @@ jobs:
8377
platforms: linux/amd64,linux/arm64
8478
push: true
8579
tags: |
86-
kxhubs/it-tools:nightly
8780
ghcr.io/kxhubs/it-tools:nightly

.github/workflows/releases.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ jobs:
2222
username: ${{ github.repository_owner }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

25-
- name: Login to Docker Hub
26-
uses: docker/login-action@v3
27-
with:
28-
username: ${{ secrets.DOCKERHUB_USERNAME }}
29-
password: ${{ secrets.DOCKERHUB_TOKEN }}
30-
3125
- name: Set up QEMU
3226
uses: docker/setup-qemu-action@v3
3327

@@ -42,8 +36,6 @@ jobs:
4236
platforms: linux/amd64,linux/arm64
4337
push: true
4438
tags: |
45-
kxhubs/it-tools:latest
46-
kxhubs/it-tools:${{ env.RELEASE_VERSION }}
4739
ghcr.io/kxhubs/it-tools:latest
4840
ghcr.io/kxhubs/it-tools:${{ env.RELEASE_VERSION}}
4941
@@ -92,9 +84,6 @@ jobs:
9284
body: |
9385
## Docker images
9486
95-
- Docker Hub
96-
- `kxhubs/it-tools:latest`
97-
- `kxhubs/it-tools:${{ env.RELEASE_VERSION }}`
9887
- GitHub Container Registry
9988
- `ghcr.io/kxhubs/it-tools:latest`
10089
- `ghcr.io/kxhubs/it-tools:${{ env.RELEASE_VERSION}}`

0 commit comments

Comments
 (0)