File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 # github.repository as <account>/<repo>
2020 IMAGE_NAME : ${{ github.repository }}-full
2121 # docker.io/<account>/<repo>
22- DOCKERHUB_IMAGE : ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-full
22+ AUTHOR : urenko
2323
2424
2525jobs :
6262 password : ${{ secrets.GITHUB_TOKEN }}
6363 -
6464 name : Login to Docker Hub
65+ if : github.event_name != 'pull_request'
6566 uses : docker/login-action@v3
6667 with :
6768 username : ${{ secrets.DOCKERHUB_USERNAME }}
7980 id : meta_dockerhub
8081 uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
8182 with :
82- images : docker.io/${{ env.DOCKERHUB_IMAGE }}
83+ images : docker.io/${{ secrets.DOCKERHUB_USERNAME || env.AUTHOR }}/${{ github.event.repository.name }}-full
8384
8485 # Build and push Docker image with Buildx (don't push on PR)
8586 # https://github.com/docker/build-push-action
Original file line number Diff line number Diff line change 1919 # github.repository as <account>/<repo>
2020 IMAGE_NAME : ${{ github.repository }}
2121 # docker.io/<account>/<repo>
22- DOCKERHUB_IMAGE : ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
22+ AUTHOR : urenko
2323
2424
2525jobs :
6262 password : ${{ secrets.GITHUB_TOKEN }}
6363 -
6464 name : Login to Docker Hub
65+ if : github.event_name != 'pull_request'
6566 uses : docker/login-action@v3
6667 with :
6768 username : ${{ secrets.DOCKERHUB_USERNAME }}
7980 id : meta_dockerhub
8081 uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
8182 with :
82- images : docker.io/${{ env.DOCKERHUB_IMAGE }}
83+ images : docker.io/${{ secrets.DOCKERHUB_USERNAME || env.AUTHOR }}/${{ github.event.repository.name }}
8384
8485 # Build and push Docker image with Buildx (don't push on PR)
8586 # https://github.com/docker/build-push-action
You can’t perform that action at this time.
0 commit comments