Skip to content

Commit 306a9a0

Browse files
committed
fix(docker): push to Docker Hub with DOCKER_USERNAME/DOCKER_TOKEN secrets
1 parent eb7d4f8 commit 306a9a0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,18 @@ jobs:
327327
- name: Set up Docker Buildx
328328
uses: docker/setup-buildx-action@v3
329329

330-
- name: Login to Container Registry
330+
- name: Login to Container Registry (Docker Hub)
331331
uses: docker/login-action@v3
332332
with:
333-
registry: ghcr.io
334-
username: ${{ github.actor }}
335-
password: ${{ secrets.GITHUB_TOKEN }}
333+
registry: docker.io
334+
username: ${{ secrets.DOCKER_USERNAME }}
335+
password: ${{ secrets.DOCKER_TOKEN }}
336336

337337
- name: Extract metadata
338338
id: meta
339339
uses: docker/metadata-action@v5
340340
with:
341-
images: ghcr.io/${{ github.repository }}
341+
images: ${{ secrets.DOCKER_USERNAME }}/opencodehub
342342
tags: |
343343
type=ref,event=branch
344344
type=sha

0 commit comments

Comments
 (0)