diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92cd3ae..276d98d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: id: meta uses: docker/metadata-action@v3 with: - images: ghcr.io/dmunozv04/isponsorblocktv + images: ghcr.io/dmunozv04/isponsorblocktv, dmunozv04/isponsorblocktv tags: | type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} @@ -44,6 +44,13 @@ jobs: - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v1 + + -name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GHCR if: github.event_name != 'pull_request' @@ -63,3 +70,10 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache cache-to: type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache,mode=max + + -name: Update repo description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + repository: dmunozv04/isponsorblocktv