Skip to content

Commit

Permalink
Merge pull request #218 from dmunozv04/improve-docker-image-creation
Browse files Browse the repository at this point in the history
Improve docker image creation (now supports forks)
  • Loading branch information
dmunozv04 authored Jan 6, 2025
2 parents e715985 + 52a3f23 commit 4feecaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ permissions:

jobs:
build:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
runs-on: ubuntu-latest
steps:
# Get the repository's code
Expand All @@ -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
Expand Down

0 comments on commit 4feecaa

Please sign in to comment.