diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c4b6077..b84e5b1 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -47,6 +47,9 @@ jobs: build-docker: needs: build runs-on: ubuntu-latest + strategy: + matrix: + registry: ['ghcr.io/b-urb/doclytics', '${{ secrets.DOCKERHUB_USERNAME }}/doclytics'] permissions: packages: write contents: read @@ -63,13 +66,6 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }} - platforms: linux/amd64,linux/arm64 - name: 'Login to GitHub Container Registry' uses: docker/login-action@v3 with: @@ -81,7 +77,7 @@ jobs: with: context: . push: true - tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }} + tags: ${{ matrix.registry }}:${{ env.BRANCH_NAME }} platforms: linux/amd64,linux/arm64 release: runs-on: ubuntu-latest