File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,27 @@ jobs:
5151 steps :
5252 - name : Checkout
5353 uses : actions/checkout@v3
54-
54+
5555 - name : Log in to Docker Hub
5656 if : ${{ github.actor != 'dependabot[bot]' }}
5757 uses : docker/login-action@v3
5858 with :
5959 username : ${{ secrets.DOCKER_HUB_USERNAME }}
6060 password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
6161
62+ - name : Debug login
63+ run : docker info
64+
6265 - name : Set up Docker Buildx
6366 uses : docker/setup-buildx-action@v3
6467
68+
69+
70+ # Optional: mark that login ran successfully
71+ - name : Flag login success
72+ if : ${{ github.actor != 'dependabot[bot]' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }}
73+ run : echo "DOCKER_AUTH=1" >> $GITHUB_ENV
74+
6575 - name : Build and Push CPU Image
6676 uses : docker/build-push-action@v6
6777 with :
7080 build-args : |
7181 CPU_ARCHITECTURE=${{ matrix.platform }}
7282 tags : cogstacksystems/jupyter-singleuser:${{ needs.setup.outputs.release_version }}-${{ matrix.platform }}
73- push : ${{ github.actor != 'dependabot[bot] ' }}
83+ push : ${{ env.DOCKER_AUTH == '1 ' }}
7484
7585 build-gpu :
7686 needs : setup
You can’t perform that action at this time.
0 commit comments