Skip to content

Commit 785fcc1

Browse files
Switch Docker registry from GHCR to Docker Hub
1 parent 7def7b8 commit 785fcc1

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

.github/workflows/build-images.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,46 @@ on:
66
jobs:
77
build-appflowy-cloud:
88
runs-on: ubuntu-latest
9-
permissions:
10-
contents: read
11-
packages: write
129
steps:
1310
- name: Checkout
1411
uses: actions/checkout@v4
1512

1613
- name: Set up Docker Buildx
1714
uses: docker/setup-buildx-action@v3
1815

19-
- name: Login to GHCR
16+
- name: Login to Docker Hub
2017
uses: docker/login-action@v3
2118
with:
22-
registry: ghcr.io
23-
username: ${{ github.actor }}
24-
password: ${{ secrets.GITHUB_TOKEN }}
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2521

2622
- name: Build and push appflowy_cloud
2723
uses: docker/build-push-action@v5
2824
with:
2925
context: .
3026
file: ./Dockerfile
3127
push: true
32-
tags: ghcr.io/yodev-dev/appflowy_cloud:latest
28+
tags: gwillisyodev/appflowy_cloud:latest
3329

3430
build-admin-frontend:
3531
runs-on: ubuntu-latest
36-
permissions:
37-
contents: read
38-
packages: write
3932
steps:
4033
- name: Checkout
4134
uses: actions/checkout@v4
4235

4336
- name: Set up Docker Buildx
4437
uses: docker/setup-buildx-action@v3
4538

46-
- name: Login to GHCR
39+
- name: Login to Docker Hub
4740
uses: docker/login-action@v3
4841
with:
49-
registry: ghcr.io
50-
username: ${{ github.actor }}
51-
password: ${{ secrets.GITHUB_TOKEN }}
42+
username: ${{ secrets.DOCKERHUB_USERNAME }}
43+
password: ${{ secrets.DOCKERHUB_TOKEN }}
5244

5345
- name: Build and push admin_frontend
5446
uses: docker/build-push-action@v5
5547
with:
5648
context: ./admin_frontend
5749
file: ./admin_frontend/Dockerfile
5850
push: true
59-
tags: ghcr.io/yodev-dev/admin_frontend:latest
51+
tags: gwillisyodev/admin_frontend:latest

0 commit comments

Comments
 (0)