Skip to content

Commit ad5434c

Browse files
committed
.github/workflows/build: enable pushing to dockerhub
1 parent b51f606 commit ad5434c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
with:
5959
images: |
6060
ghcr.io/${{ github.repository_owner }}/void-${{ matrix.libc }}${{ matrix.variant }}
61+
voidlinux/void-${{ matrix.libc }}${{ matrix.variant }}
6162
tags: |
6263
type=sha,prefix=
6364
type=raw,value=latest,enable={{is_default_branch}}
@@ -86,6 +87,13 @@ jobs:
8687
username: ${{ github.actor }}
8788
password: ${{ secrets.GITHUB_TOKEN }}
8889

90+
- name: Login to DockerHub
91+
if: github.event_name != 'pull_request'
92+
uses: docker/login-action@v2
93+
with:
94+
username: ${{ secrets.DOCKERHUB_USERNAME }}
95+
password: ${{ secrets.DOCKERHUB_TOKEN }}
96+
8997
- name: Build and push images
9098
id: build_and_push
9199
uses: docker/bake-action@v3

0 commit comments

Comments
 (0)