fix(docker): push to Docker Hub with DOCKER_USERNAME/DOCKER_TOKEN secrets

Swadhin Biswas committed 6 months ago
4088068
1 parent 9b1e07d
commit 4088068
1 file changed
+5 -5
Showing 1 changed file+5-5
▼.github/workflows/ci.yml
+5-5
327
327
- name: Set up Docker Buildx
328
328
uses: docker/setup-buildx-action@v3
329
329
330
- - name: Login to Container Registry
330
+ - name: Login to Container Registry (Docker Hub)
331
331
uses: docker/login-action@v3
332
332
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 }}
336
336
337
337
- name: Extract metadata
338
338
id: meta
339
339
uses: docker/metadata-action@v5
340
340
with:
341
- images: ghcr.io/${{ github.repository }}
341
+ images: ${{ secrets.DOCKER_USERNAME }}/opencodehub
342
342
tags: |
343
343
type=ref,event=branch
344
344
type=sha
345
345