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