Skip to content

Commit

Permalink
.github/workflows/build: enable pushing to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Oct 30, 2023
1 parent b51f606 commit ad5434c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
with:
images: |
ghcr.io/${{ github.repository_owner }}/void-${{ matrix.libc }}${{ matrix.variant }}
voidlinux/void-${{ matrix.libc }}${{ matrix.variant }}
tags: |
type=sha,prefix=
type=raw,value=latest,enable={{is_default_branch}}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ad5434c

Please sign in to comment.