Skip to content

Commit df903a2

Browse files
gabe565bastienwirtz
authored andcommitted
Add GHCR Docker image mirror
1 parent acd6a89 commit df903a2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/dockerhub.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
with:
2828
username: ${{ secrets.DOCKERHUB_USERNAME }}
2929
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
-
31+
name: Login to GHCR
32+
uses: docker/login-action@v2
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.actor }}
36+
password: ${{ github.token }}
3037
-
3138
name: Set tag name
3239
run: |
@@ -40,5 +47,7 @@ jobs:
4047
uses: docker/build-push-action@v3
4148
with:
4249
push: true
43-
tags: b4bz/homer:${{env.IMAGE_TAG}}
44-
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
50+
tags: |
51+
b4bz/homer:${{env.IMAGE_TAG}}
52+
ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}
53+
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64

0 commit comments

Comments
 (0)