From df903a2c048d5addee00d1d840ca64a181a3adc9 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Tue, 28 Mar 2023 11:12:11 -0500 Subject: Add GHCR Docker image mirror --- .github/workflows/dockerhub.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to '.github/workflows/dockerhub.yml') diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 7a9a666..5968d1b 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -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 -- cgit v1.2.3