From 7e0cd0a3787e996d33d4eee61bd97a6b29d73f57 Mon Sep 17 00:00:00 2001 From: parra Date: Wed, 13 Apr 2022 13:47:58 +0200 Subject: [PATCH] Add multi-registry push to Snapshot images --- .github/workflows/build-snapshot.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index 6c3ff4d..37c096b 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -37,18 +37,26 @@ jobs: id: buildx uses: docker/setup-buildx-action@v1 - - name: Log into registry ${{ env.REGISTRY }} + - name: Log into ${{ env.GH_REPO }} registry uses: docker/login-action@v1 with: registry: ${{ env.GH_REPO }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + + - name: Log into DockerHub registry + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract Docker metadata id: meta uses: docker/metadata-action@v3 with: - images: ${{ env.GH_REPO }}/${{ env.IMAGE_NAME }} + images: | + ${{ env.GH_REPO }}/${{ env.IMAGE_NAME }} + ${{ env.IMAGE_NAME }} - name: Build image and push snapshot to GitHub Container Registry id: build-and-push