Skip to content

Commit 86cd93f

Browse files
committed
make Docker build CI push to Docker Hub as well
1 parent 4870692 commit 86cd93f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/docker_build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@ jobs:
2121
registry: ghcr.io
2222
username: ${{ github.actor }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Log in to Docker Hub
26+
uses: docker/login-action@v3
27+
with:
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2430

2531
- name: Build and push the Docker image
2632
uses: docker/build-push-action@v6
2733
with:
2834
context: .
2935
push: true
30-
tags: ghcr.io/pixelweatherproject/pwmp-server:latest
36+
tags: |
37+
ghcr.io/pixelweatherproject/pwmp-server:latest
38+
br0kenpixel/pwmp-server:latest

0 commit comments

Comments
 (0)