From 40ce3d4240519ad9ff7ce94672ce220fb7c7b911 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 30 Oct 2023 11:09:16 -0400 Subject: [PATCH] .github/workflows/build: enable pushing to dockerhub --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6a4c933..aaffc98 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,6 +58,7 @@ jobs: with: images: | ghcr.io/${{ github.repository_owner }}/void-${{ matrix.libc }}${{ matrix.variant }} + docker.io/voidlinux/void-${{ matrix.libc }}${{ matrix.variant }} tags: | type=sha,prefix= type=raw,value=latest,enable={{is_default_branch}} @@ -86,6 +87,13 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push images id: build_and_push uses: docker/bake-action@v3