🔨 Replace the docker hub to use ghcr

This commit is contained in:
2025-07-29 21:40:00 +08:00
parent 9d63a3b81c
commit 24f0d8f151

View File

@@ -19,18 +19,19 @@ jobs:
id: nbgv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push DysonNetwork.Sphere Docker image
uses: docker/build-push-action@v6
with:
file: DysonNetwork.Sphere/Dockerfile
context: .
push: true
tags: xsheep2010/dyson-sphere:latest
tags: ghcr.io/${{ github.repository_owner }}/dyson-sphere:latest
platforms: linux/amd64
build-pass:
@@ -45,18 +46,19 @@ jobs:
id: nbgv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push DysonNetwork.Pass Docker image
uses: docker/build-push-action@v6
with:
file: DysonNetwork.Pass/Dockerfile
context: .
push: true
tags: xsheep2010/dyson-pass:latest
tags: ghcr.io/${{ github.repository_owner }}/dyson-pass:latest
platforms: linux/amd64
build-pusher:
@@ -71,18 +73,19 @@ jobs:
id: nbgv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push DysonNetwork.Pusher Docker image
uses: docker/build-push-action@v6
with:
file: DysonNetwork.Pusher/Dockerfile
context: .
push: true
tags: xsheep2010/dyson-pusher:latest
tags: ghcr.io/${{ github.repository_owner }}/dyson-pusher:latest
platforms: linux/amd64
build-drive:
@@ -97,18 +100,19 @@ jobs:
id: nbgv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push DysonNetwork.Drive Docker image
uses: docker/build-push-action@v6
with:
file: DysonNetwork.Drive/Dockerfile
context: .
push: true
tags: xsheep2010/dyson-drive:latest
tags: ghcr.io/${{ github.repository_owner }}/dyson-drive:latest
platforms: linux/amd64
build-gateway:
@@ -123,16 +127,17 @@ jobs:
id: nbgv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push DysonNetwork.Gateway Docker image
uses: docker/build-push-action@v6
with:
file: DysonNetwork.Gateway/Dockerfile
context: .
push: true
tags: xsheep2010/dyson-gateway:latest
tags: ghcr.io/${{ github.repository_owner }}/dyson-gateway:latest
platforms: linux/amd64