Skip to content

Commit 15b25ac

Browse files
committed
Workflow flix.
1 parent 699d2d5 commit 15b25ac

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/docker-jupyter-singleuser.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
@@ -70,7 +80,7 @@ jobs:
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

0 commit comments

Comments
 (0)