push to docker hub also

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Mar 5, 2026 at 09:53 UTC 5b2860f761b5f0eff61a42bba01961b08c062b3b
2 files changed +18 -4
.github/workflows/docker-alpine.yml
+9 -2
@@ -93,12 +93,19 @@ jobs:
93 with:
94 registry: ghcr.io
95 username: ${{ github.repository_owner }}
96 - password: ${{ secrets.MY_TOKEN || secrets.GITHUB_TOKEN }}
96 + password: ${{ secrets.GITHUB_TOKEN }}
97 + - name: Log in to Docker Hub
98 + uses: docker/login-action@v3
99 + with:
100 + username: ${{ secrets.DOCKER_USERNAME }}
101 + password: ${{ secrets.DOCKER_PASSWORD }}
102 - name: compile metadata information
103 id: meta
104 uses: docker/metadata-action@v5
105 with:
101 - images: ghcr.io/${{ github.repository_owner }}/meshcentral
106 + images: |
107 + ghcr.io/${{ github.repository_owner }}/meshcentral
108 + docker.io/${{ secrets.DOCKER_USERNAME }}/meshcentral
109 tags: |
110 type=ref,event=branch,suffix=${{ matrix.suffix }}
111 type=ref,event=tag,suffix=${{ matrix.suffix }}
.github/workflows/docker-debian.yml
+9 -2
@@ -93,12 +93,19 @@ jobs:
93 with:
94 registry: ghcr.io
95 username: ${{ github.repository_owner }}
96 - password: ${{ secrets.MY_TOKEN || secrets.GITHUB_TOKEN }}
96 + password: ${{ secrets.GITHUB_TOKEN }}
97 + - name: Log in to Docker Hub
98 + uses: docker/login-action@v3
99 + with:
100 + username: ${{ secrets.DOCKER_USERNAME }}
101 + password: ${{ secrets.DOCKER_PASSWORD }}
102 - name: compile metadata information
103 id: meta
104 uses: docker/metadata-action@v5
105 with:
101 - images: ghcr.io/${{ github.repository_owner }}/meshcentral
106 + images: |
107 + ghcr.io/${{ github.repository_owner }}/meshcentral
108 + docker.io/${{ secrets.DOCKER_USERNAME }}/meshcentral
109 flavor: |
110 latest=false
111 tags: |