From 52a3f238d698f7a1edfd26667f5dc9ae708f4dcf Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:16:17 +0100 Subject: [PATCH] Also build images on forks --- .github/workflows/build_docker_images.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_docker_images.yml b/.github/workflows/build_docker_images.yml index 8bbb573..5e04fa0 100644 --- a/.github/workflows/build_docker_images.yml +++ b/.github/workflows/build_docker_images.yml @@ -21,6 +21,8 @@ permissions: jobs: build: + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} runs-on: ubuntu-latest steps: # Get the repository's code @@ -32,7 +34,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/dmunozv04/isponsorblocktv, dmunozv04/isponsorblocktv + images: | + ghcr.io/${{ github.repository }} + ${{ env.DOCKERHUB_USERNAME && 'dmunozv04/isponsorblocktv' || '' }} tags: | type=raw,value=develop,priority=900,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr