]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Add GHCR Docker image mirror v23.05.1
authorGabe Cook <gabe565@gmail.com>
Tue, 28 Mar 2023 16:12:11 +0000 (11:12 -0500)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Sat, 13 May 2023 13:49:20 +0000 (15:49 +0200)
.github/workflows/dockerhub.yml

index 7a9a6666438f048f8ff16ec8d043cdcbd13787b2..5968d1bd3bbd74684fe9f9e1d7a0f6683a4b1655 100644 (file)
@@ -27,6 +27,13 @@ jobs:
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
+      -
+        name: Login to GHCR
+        uses: docker/login-action@v2
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ github.token }}
       - 
         name: Set tag name
         run: |
@@ -40,5 +47,7 @@ jobs:
         uses: docker/build-push-action@v3
         with:
           push: true
-          tags: b4bz/homer:${{env.IMAGE_TAG}}
-          platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
\ No newline at end of file
+          tags: |
+            b4bz/homer:${{env.IMAGE_TAG}}
+            ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}
+          platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64